Interface IEvent<TEvent, TExchangeEndPoint>
Represents an event interface that defines the contract for handling a specific event sent over an exchange endpoint.
public interface IEvent<TEvent, TExchangeEndPoint> : _IEvent<TEvent>, _IMessage<TEvent, NoResponse, TExchangeEndPoint>, _IMessage<TEvent, NoResponse> where TEvent : IEvent<TEvent, TExchangeEndPoint> where TExchangeEndPoint : ExchangeEndPoint, new()
Type Parameters
TEventThe type of the event.
TExchangeEndPointThe type of the messaging exchange endpoint associated with the event (should inherit from ExchangeEndPoint)
Examples
Example of an event definition:
public class MyEvent : IEvent<MyEvent, MyExchangeEndPoint>
{
public MyEvent(string eventData)
{
EventData = eventData;
}
public string EventData { get; set; }
}