Show / Hide Table of Contents

Class NullLocalEventBus

Inheritance
System.Object
NullLocalEventBus
Implements
ILocalEventBus
IEventBus
Namespace: Volo.Abp.EventBus.Local
Assembly: Volo.Abp.EventBus.dll
Syntax
public sealed class NullLocalEventBus : object, ILocalEventBus, IEventBus

Properties

Instance

Declaration
public static NullLocalEventBus Instance { get; }
Property Value
Type Description
NullLocalEventBus

Methods

PublishAsync(Type, Object)

Declaration
public Task PublishAsync(Type eventType, object eventData)
Parameters
Type Name Description
Type eventType
System.Object eventData
Returns
Type Description
Task

PublishAsync<TEvent>(TEvent)

Declaration
public Task PublishAsync<TEvent>(TEvent eventData)

    where TEvent : class
Parameters
Type Name Description
TEvent eventData
Returns
Type Description
Task
Type Parameters
Name Description
TEvent

Subscribe(Type, IEventHandler)

Declaration
public IDisposable Subscribe(Type eventType, IEventHandler handler)
Parameters
Type Name Description
Type eventType
IEventHandler handler
Returns
Type Description
IDisposable

Subscribe(Type, IEventHandlerFactory)

Declaration
public IDisposable Subscribe(Type eventType, IEventHandlerFactory factory)
Parameters
Type Name Description
Type eventType
IEventHandlerFactory factory
Returns
Type Description
IDisposable

Subscribe<TEvent>(Func<TEvent, Task>)

Declaration
public IDisposable Subscribe<TEvent>(Func<TEvent, Task> action)

    where TEvent : class
Parameters
Type Name Description
Func<TEvent, Task> action
Returns
Type Description
IDisposable
Type Parameters
Name Description
TEvent

Subscribe<TEvent>(IEventHandlerFactory)

Declaration
public IDisposable Subscribe<TEvent>(IEventHandlerFactory factory)

    where TEvent : class
Parameters
Type Name Description
IEventHandlerFactory factory
Returns
Type Description
IDisposable
Type Parameters
Name Description
TEvent

Subscribe<TEvent>(ILocalEventHandler<TEvent>)

Declaration
public IDisposable Subscribe<TEvent>(ILocalEventHandler<TEvent> handler)

    where TEvent : class
Parameters
Type Name Description
ILocalEventHandler<TEvent> handler
Returns
Type Description
IDisposable
Type Parameters
Name Description
TEvent

Subscribe<TEvent, THandler>()

Declaration
public IDisposable Subscribe<TEvent, THandler>()

    where TEvent : class where THandler : IEventHandler, new()
Returns
Type Description
IDisposable
Type Parameters
Name Description
TEvent
THandler

Unsubscribe(Type, IEventHandler)

Declaration
public void Unsubscribe(Type eventType, IEventHandler handler)
Parameters
Type Name Description
Type eventType
IEventHandler handler

Unsubscribe(Type, IEventHandlerFactory)

Declaration
public void Unsubscribe(Type eventType, IEventHandlerFactory factory)
Parameters
Type Name Description
Type eventType
IEventHandlerFactory factory

Unsubscribe<TEvent>(Func<TEvent, Task>)

Declaration
public void Unsubscribe<TEvent>(Func<TEvent, Task> action)

    where TEvent : class
Parameters
Type Name Description
Func<TEvent, Task> action
Type Parameters
Name Description
TEvent

Unsubscribe<TEvent>(IEventHandlerFactory)

Declaration
public void Unsubscribe<TEvent>(IEventHandlerFactory factory)

    where TEvent : class
Parameters
Type Name Description
IEventHandlerFactory factory
Type Parameters
Name Description
TEvent

Unsubscribe<TEvent>(ILocalEventHandler<TEvent>)

Declaration
public void Unsubscribe<TEvent>(ILocalEventHandler<TEvent> handler)

    where TEvent : class
Parameters
Type Name Description
ILocalEventHandler<TEvent> handler
Type Parameters
Name Description
TEvent

UnsubscribeAll(Type)

Declaration
public void UnsubscribeAll(Type eventType)
Parameters
Type Name Description
Type eventType

UnsubscribeAll<TEvent>()

Declaration
public void UnsubscribeAll<TEvent>()

    where TEvent : class
Type Parameters
Name Description
TEvent

Implements

ILocalEventBus
IEventBus

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