Class GlobalEventToHubProxy<TAuthenticationToken>
Proxies ALL IEvent<TAuthenticationToken> received from the event bus to the INotificationHub. This gets registered as a global IEventHandler.
Inheritance
System.Object
EventToHubProxy<TAuthenticationToken>
GlobalEventToHubProxy<TAuthenticationToken>
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Cqrs.WebApi.Events.Handlers
Assembly: Cqrs.WebApi.dll
Syntax
public class GlobalEventToHubProxy<TAuthenticationToken> : EventToHubProxy<TAuthenticationToken>, IEventHandler<TAuthenticationToken, IEvent<TAuthenticationToken>>, IMessageHandler<IEvent<TAuthenticationToken>>, IEventHandler, IHandler
Type Parameters
Name | Description |
---|---|
TAuthenticationToken | The System.Type of the authentication token. |
Constructors
GlobalEventToHubProxy(ILogger, INotificationHub, IAuthenticationTokenHelper<TAuthenticationToken>)
Instantiates a new instance of GlobalEventToHubProxy<TAuthenticationToken>.
Declaration
public GlobalEventToHubProxy(ILogger logger, INotificationHub notificationHub, IAuthenticationTokenHelper<TAuthenticationToken> authenticationTokenHelper)
Parameters
Type | Name | Description |
---|---|---|
cdmdotnet.Logging.ILogger | logger | |
INotificationHub | notificationHub | |
IAuthenticationTokenHelper<TAuthenticationToken> | authenticationTokenHelper |
Methods
Handle(IEvent<TAuthenticationToken>)
Declaration
public void Handle(IEvent<TAuthenticationToken> event)
Parameters
Type | Name | Description |
---|---|---|
IEvent<TAuthenticationToken> | event | The IEvent<TAuthenticationToken> to proxy. |