Interface IEventDataMayHaveTenantId
An event data object (or event transfer object) can implement this interface to indicate that this event may be related to a tenant.
If an event data class is always related to a tenant, then directly implement the IsMultiTenant(out Nullable<Guid>) interface instead of this one.
This interface is typically implemented by generic event handlers where the generic parameter may implement IsMultiTenant(out Nullable<Guid>) or not.
Namespace: Volo.Abp.EventBus
Assembly: Volo.Abp.EventBus.dll
Syntax
public interface IEventDataMayHaveTenantId
Methods
IsMultiTenant(out Nullable<Guid>)
Returns true if this event data has a Tenant Id information.
If so, it should set the
Declaration
bool IsMultiTenant(out Guid? tenantId)
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<Guid> | tenantId | The tenant id that is set if this method returns true. |
Returns
Type | Description |
---|---|
System.Boolean |