Table of Contents

Method SubscribeAll

Namespace
Anvil.Services
Assembly
NWN.Anvil.dll

SubscribeAll<TEvent, TFactory>(Action<TEvent>, EventCallbackType)

public void SubscribeAll<TEvent, TFactory>(Action<TEvent> handler, EventCallbackType eventCallbackType = EventCallbackType.Before) where TEvent : IEvent, new() where TFactory : IEventFactory<NullRegistrationData>

Parameters

handler Action<TEvent>
eventCallbackType EventCallbackType

Type Parameters

TEvent
TFactory

SubscribeAll<TEvent, TFactory, TRegData>(TRegData, Action<TEvent>, EventCallbackType)

public void SubscribeAll<TEvent, TFactory, TRegData>(TRegData registrationData, Action<TEvent> handler, EventCallbackType eventCallbackType = EventCallbackType.Before) where TEvent : IEvent, new() where TFactory : IEventFactory<TRegData>

Parameters

registrationData TRegData
handler Action<TEvent>
eventCallbackType EventCallbackType

Type Parameters

TEvent
TFactory
TRegData