Show / Hide Table of Contents

Class DefaultCallContext

A default call context implementation that uses ICurrentPrincipalAccessor and ITenantAccessor.

Inheritance
Object
DefaultCallContext
Inherited Members
System.Object.ToString()
Object.Equals(Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
Object.MemberwiseClone()
Namespace: IRM
Assembly: IRM.dll
Syntax
public class DefaultCallContext : ICallContext

Constructors

DefaultCallContext()

Creates a new instance of DefaultCallContext.

Declaration
protected DefaultCallContext()
Remarks

If this constructor is used it is required to override both User and TenantId properties.

DefaultCallContext(ICurrentPrincipalAccessor, ITenantAccessor)

Creates a new instance of DefaultCallContext.

Declaration
public DefaultCallContext(ICurrentPrincipalAccessor currentPrincipalAccessor, ITenantAccessor tenantAccessor)
Parameters
ICurrentPrincipalAccessor currentPrincipalAccessor

ITenantAccessor tenantAccessor

DefaultCallContext(ITenantAccessor)

Creates a new instance of DefaultCallContext.

Declaration
protected DefaultCallContext(ITenantAccessor tenantAccessor)
Parameters
ITenantAccessor tenantAccessor

Remarks

If this constructor is used it is required to override User.

Properties

CancellationToken

Gets or sets a CancellationToken that can be used to abort the current call.

Declaration
public virtual CancellationToken CancellationToken { get; set; }
Property Value
System.Threading.CancellationToken

Implements
ICallContext.CancellationToken

CorrelationId

Gets or sets the correlation id for the current call context.

Declaration
public virtual Guid CorrelationId { get; set; }
Property Value
System.Guid

Implements
ICallContext.CorrelationId

CurrentCulture

Gets or sets the current System.Globalization.CultureInfo.

Declaration
public CultureInfo CurrentCulture { get; set; }
Property Value
System.Globalization.CultureInfo

Implements
ICallContext.CurrentCulture

TenantId

Gets the tenant id for the current call context.

Declaration
public virtual Guid TenantId { get; }
Property Value
System.Guid

Implements
ICallContext.TenantId

User

Gets the user for the current call context.

Declaration
public virtual ClaimsPrincipal User { get; }
Property Value
System.Security.Claims.ClaimsPrincipal

Implements
ICallContext.User

Extension Methods

ObjectExtensions.DeepClone<T>(T)
AnnotationsExtensions.IsValid(Object)
Back to top Generated by DocFX