Esempio n. 1
0
 public Task PreHandleAsync(IHandleContext <IQueryBase> context)
 {
     (context.Message as FakeParentQuery) !.ExecutedTypes.Add(typeof(FakeGlobalQueryPreHandler));
     return(Task.CompletedTask);
 }
Esempio n. 2
0
 public Task PreHandleAsync(IHandleContext <IEvent> context)
 {
     (context.Message as FakeParentEvent) !.ExecutedTypes.Add(typeof(FakeGlobalEventPreHandler));
     return(Task.CompletedTask);
 }
 public Task PostHandleAsync(IHandleContext <ICommandBase> context)
 {
     (context.Message as FakeParentCommand) !.ExecutedTypes.Add(typeof(FakeGlobalCommandPostHandler));
     return(Task.CompletedTask);
 }