Show / Hide Table of Contents

Class TenantAccessorDecoratorExtensions

Extension methods to make it easy to set current tenant from an event.

Inheritance
Object
TenantAccessorDecoratorExtensions
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.Messaging
Assembly: IRM.dll
Syntax
public static class TenantAccessorDecoratorExtensions

Methods

SetCurrentEvent(ITenantAccessor, IEvent)

Sets the current event to get tenant id from.

Declaration
public static void SetCurrentEvent(this ITenantAccessor tenantAccessor, IEvent event)
Parameters
ITenantAccessor tenantAccessor

The TenantAccessorDecorator to set a current tenant from the event for.

IEvent event

The IEvent to get the tenant from.

Remarks

If the tenantAccessor is not a TenantAccessorDecorator this method does nothing.

Back to top Generated by DocFX