Esempio n. 1
0
 public CommandServicer()
 {
     _currentRepositoryContextProvider = ObjectContainer.Resolve <ICurrentRepositoryContextProvider>();
     _repositoryContextManager         = ObjectContainer.Resolve <IRepositoryContextManager>();
     _commandHandler         = ObjectContainer.Resolve <ICommandHandler>();
     _commandDelegateFactory = ObjectContainer.Resolve <ICommandServicerDelegateFactory>();
 }
Esempio n. 2
0
 public CommandServicer(ICurrentRepositoryContextProvider currentRepositoryContextProvider
                        , IRepositoryContextManager repositoryContextManager, ICommandHandler commandHandler
                        , ICommandServicerDelegateFactory commandDelegateFactory)
 {
     _currentRepositoryContextProvider = currentRepositoryContextProvider;
     _repositoryContextManager         = repositoryContextManager;
     _commandHandler         = commandHandler;
     _commandDelegateFactory = commandDelegateFactory;
 }
 public RabbitMQMessagingHandler()
 {
     _logger                           = ObjectContainer.Resolve <ILoggerFactory>().Create(GetType());
     _jsonSerialzer                    = ObjectContainer.Resolve <IJsonSerializer>();
     _repositoryContextManager         = ObjectContainer.Resolve <IRepositoryContextManager>();
     _currentRepositoryContextProvider = ObjectContainer.Resolve <ICurrentRepositoryContextProvider>();
     _commandDelegateFactory           = ObjectContainer.Resolve <ICommandServicerDelegateFactory>();
     _commandHandler                   = ObjectContainer.Resolve <ICommandHandler>();
 }
Esempio n. 4
0
 public CommandHandler(IRepositoryContextManager contextManager, ILoggerFactory loggerFactory,
                       IJsonSerializer jsonSerializer, ICurrentRepositoryContextProvider currentRepositoryContextProvider,
                       ICommandServicerDelegateFactory delegateFactory)
 {
     _contextManager         = contextManager;
     _logger                 = loggerFactory.Create <CommandHandler>();
     _jsonSerialzer          = jsonSerializer;
     _currentContextProvider = currentRepositoryContextProvider;
     _delegateFactory        = delegateFactory;
 }
Esempio n. 5
0
 public Repository()
 {
     _currentRepositoryContextProvider = ObjectContainer.Resolve <ICurrentRepositoryContextProvider>();
 }
Esempio n. 6
0
 public MessageServicer()
 {
     _provider = ObjectContainer.Resolve <ICurrentRepositoryContextProvider>();
     _repositoryContextManager = ObjectContainer.Resolve <IRepositoryContextManager>();
 }
Esempio n. 7
0
 public DomainBaseService()
 {
     _currentRepositoryContextProvider = ObjectContainer.Resolve <ICurrentRepositoryContextProvider>();
     _repositoryContextManager         = ObjectContainer.Resolve <IRepositoryContextManager>();
 }
 public RepositoryContextManager(ICurrentRepositoryContextProvider currentRepositoryContextProvider)
 {
     this.currentRepositoryContextProvider = currentRepositoryContextProvider;
 }