Class FakeEventDispatcherService
No-op IEventDispatcherService implementation for testing.
Inheritance
FakeEventDispatcherService
Implements
IEventDispatcherService
IService
IFoundationSettings
Assembly: Tests.dll
Syntax
public class FakeEventDispatcherService : IEventDispatcherService, IService, IFoundationSettings
Constructors
FakeEventDispatcherService()
Declaration
public FakeEventDispatcherService()
Properties
Guid
Declaration
public string Guid { get; set; }
Property Value
Id
Declaration
public string Id { get; set; }
Property Value
LogService
Declaration
public ILogService LogService { get; set; }
Property Value
| Type |
Description |
| ILogService |
|
Methods
Dispatch(IEventDispatcherSignalDefinition)
Declaration
public void Dispatch(IEventDispatcherSignalDefinition signalDefinition)
Parameters
| Type |
Name |
Description |
| IEventDispatcherSignalDefinition |
signalDefinition |
|
Dispatch(EventDispatcherSignal, Type)
Declaration
public void Dispatch(EventDispatcherSignal signal, Type type)
Parameters
| Type |
Name |
Description |
| EventDispatcherSignal |
signal |
|
| Type |
type |
|
Dispatch<T>(T)
Declaration
public void Dispatch<T>(T signal) where T : EventDispatcherSignal
Parameters
| Type |
Name |
Description |
| T |
signal |
|
Type Parameters
Subscribe<T>(EventDispatcherSignalDelegate)
Declaration
public void Subscribe<T>(EventDispatcherSignalDelegate callback) where T : EventDispatcherSignal
Parameters
| Type |
Name |
Description |
| EventDispatcherSignalDelegate |
callback |
|
Type Parameters
Unsubscribe<T>(EventDispatcherSignalDelegate)
Declaration
public void Unsubscribe<T>(EventDispatcherSignalDelegate callback) where T : EventDispatcherSignal
Parameters
| Type |
Name |
Description |
| EventDispatcherSignalDelegate |
callback |
|
Type Parameters
Implements
Serenity.EventDispatcher.Application.Interfaces.IEventDispatcherService
Serenity.Global.Application.Interfaces.IService
Serenity.Global.Domain.Interfaces.IFoundationSettings