public Task RegisterPostProcessorAsync(IEventPostProcessor postProcessor, Type type) { if (!_postprocessorsDictionary.TryGetValue(type, out List <IEventPostProcessor> handlers)) { handlers = new List <IEventPostProcessor>(); _postprocessorsDictionary[type] = handlers; } handlers.Add(postProcessor); return(Task.CompletedTask); }
public Task UnregisterPostprocessorAsync(IEventPostProcessor postProcessor, Type type) => Task.CompletedTask;
public Task UnregisterPostprocessorAsync <T>(IEventPostProcessor preprocessor) where T : IEventNotification => UnregisterPostprocessorAsync(preprocessor, typeof(T));
public Task RegisterPostProcessorAsync <T>(IEventPostProcessor postProcessor) where T : IEventNotification => RegisterPostProcessorAsync(postProcessor, typeof(T));