Exemplo n.º 1
0
 /// <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());
 }
Exemplo n.º 2
0
 public static async Task PullAll <TCommandMessage>(this EventBusQueue <TCommandMessage> @this)
     where TCommandMessage : EventBusCommandMessage, new()
 {
     await @this.PullAll(x => x.Process());
 }