Class DefaultCallContext
A default call context implementation that uses ICurrentPrincipalAccessor and ITenantAccessor.
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
Namespace: IRM
Assembly: IRM.dll
Syntax
public class DefaultCallContext : ICallContext
Constructors
DefaultCallContext()
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
CorrelationId
Gets or sets the correlation id for the current call context.
Declaration
public virtual Guid CorrelationId { get; set; }
Property Value
System.Guid
|
Implements
CurrentCulture
Gets or sets the current System.Globalization.CultureInfo.
Declaration
public CultureInfo CurrentCulture { get; set; }
Property Value
System.Globalization.CultureInfo
|
Implements
TenantId
Gets the tenant id for the current call context.
Declaration
public virtual Guid TenantId { get; }
Property Value
System.Guid
|
Implements
User
Gets the user for the current call context.
Declaration
public virtual ClaimsPrincipal User { get; }
Property Value
System.Security.Claims.ClaimsPrincipal
|