Example #1
0
 public QueueBuilder AddRegistrator <TRegistrator>(IServiceCollection registrator = null) where TRegistrator : IMessagingDependencyRegistrator, new()
 {
     if (registrator != null)
     {
         Registrator = registrator;
     }
     _configurator = new QueueConfigurator(Registrator, new TRegistrator());
     return(this);
 }
Example #2
0
 public QueueProvider(QueueConfigurator configurator, IInstanceResolver resolver, Dictionary <Type, Type> handlersRegistry)
 {
     _configurator     = configurator;
     _resolver         = resolver;
     _handlersRegistry = handlersRegistry;
 }