Thetype exposes the following members.
Enables an extension object to find out when it has been aggregated.
Enables an object to find out when it is no longer aggregated.
Determines whether the specified object is equal to the current object.(Inherited from Object.)
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)
Serves as the default hash function.(Inherited from Object.)
Gets the Type of the current instance.(Inherited from Object.)
Creates a shallow copy of the current Object.(Inherited from Object.)
Returns a string that represents the current object.(Inherited from Object.)
Use this extension in conjunction with the OperationContextTenantIdentificationStrategy to determine which tenant a given operation is running under.
For example, you could use an IDispatchMessageInspector that gets the tenant ID from an incoming header and adds a to the current OperationContext with the tenant ID value. Then you could register the OperationContextTenantIdentificationStrategy as the mechanism for determining the tenant ID when resolving multitenant dependencies.
The TenantPropagationBehaviorTTenantId is a behavior that does exactly that - adds the tenant ID to outbound messages on the client and parses them on the service side. For a usage example, see TenantPropagationBehaviorTTenantId