Show / Hide Table of Contents

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 our parameter. Otherwise, the our parameter value should not be informative (it will be null as expected, but doesn't indicate a tenant with null tenant id).

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

Extension Methods

AbpObjectExtensions.As<T>(Object)
AbpObjectExtensions.To<T>(Object)
AbpObjectExtensions.IsIn<T>(T, T[])
AbpObjectExtensions.If<T>(T, Boolean, Func<T, T>)
AbpObjectExtensions.If<T>(T, Boolean, Action<T>)
LockExtensions.Locking(Object, Action)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<TResult>(Object, Func<TResult>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
Back to top Powered by Volosoft