/// <summary> /// Registers a command-based event bus message handler that handles itself. /// </summary> public static void Subscribe <TCommandMessage>(this EventBusQueue <TCommandMessage> @this) where TCommandMessage : EventBusCommandMessage, new() { @this.Subscribe(x => new TCommandMessage().Process()); }
public static async Task PullAll <TCommandMessage>(this EventBusQueue <TCommandMessage> @this) where TCommandMessage : EventBusCommandMessage, new() { await @this.PullAll(x => x.Process()); }