Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 public Task UnregisterPostprocessorAsync(IEventPostProcessor postProcessor, Type type) => Task.CompletedTask;
Ejemplo n.º 3
0
 public Task UnregisterPostprocessorAsync <T>(IEventPostProcessor preprocessor) where T : IEventNotification => UnregisterPostprocessorAsync(preprocessor, typeof(T));
Ejemplo n.º 4
0
 public Task RegisterPostProcessorAsync <T>(IEventPostProcessor postProcessor) where T : IEventNotification => RegisterPostProcessorAsync(postProcessor, typeof(T));