Click or drag to resize

IEventServiceSubscribeTEvent Method

[This is preliminary documentation and is subject to change.]

Subscribe to an event of a specific type. The provided callback will be executed each time an event of the specific type has been published.

Namespace:  CSInfrastructure.Events
Assembly:  CSInfrastructure (in CSInfrastructure.dll) Version: 1.13.0+Branch.master.Sha.d583fc64569355d188a9c0818d257b6d0d3e1339
Syntax
C#
IEventSubscription Subscribe<TEvent>(
	Action<TEvent> callback
)
where TEvent : class, IEvent

Parameters

callback
Type: SystemActionTEvent
The callback to execute whenever an event has been published

Type Parameters

TEvent
The type of event to subscribe to

Return Value

Type: IEventSubscription
A guid which identifies the subscription
See Also