Interface IRescopeNotificationHandler<T>
Implement this interface to subscribe to notifications.
public interface IRescopeNotificationHandler<T> where T : IRescopeNotification
Type Parameters
T
Remarks
Example:
public class OrderPaidHandler : IRescopeNotificationHandler<OrderPaidNotification>
{
public async Task Handle(OrderPaidNotification notification)
{
throw new NotImplementedException();
}
}
public class EventComposer : IComposer
{
public void Compose(IUmbracoBuilder builder)
{
builder.WithEvent<OrderPaidNotification>()
.AddHandler<OrderPaidHandler>();
}
}
Methods
Handle(T)
Task Handle(T notification)
Parameters
notification
T