コード例 #1
0
 public UnitOfWork(
     DbContext context,
     IDomainEventsDispatcher domainEventsDispatcher)
 {
     this._context = context;
     this._domainEventsDispatcher = domainEventsDispatcher;
 }
 public DomainEventsDispatcherNotificationHandlerDecorator(
     IDomainEventsDispatcher dispatcher,
     INotificationHandler <T> decorated)
 {
     _dispatcher = dispatcher;
     _decorated  = decorated;
 }
コード例 #3
0
 public UnitOfWork(
     EmployeeDbContext employeesContext,
     IDomainEventsDispatcher domainEventsDispatcher)
 {
     _employeesContext       = employeesContext;
     _domainEventsDispatcher = domainEventsDispatcher;
 }
コード例 #4
0
 public UnitOfWork(
     CustomerContext customerContext,
     IDomainEventsDispatcher domainEventsDispatcher)
 {
     this._customerContext        = customerContext;
     this._domainEventsDispatcher = domainEventsDispatcher;
 }
コード例 #5
0
 public UnitOfWork(
     CharactersContext charactersContext,
     IDomainEventsDispatcher domainEventsDispatcher)
 {
     _charactersContext      = charactersContext;
     _domainEventsDispatcher = domainEventsDispatcher;
 }
コード例 #6
0
 public UnitOfWork(
     TreesContext treesContext,
     IDomainEventsDispatcher domainEventsDispatcher)
 {
     this._treesContext           = treesContext;
     this._domainEventsDispatcher = domainEventsDispatcher;
 }
コード例 #7
0
 public UnitOfWork(
     BDContext bdcontext,
     IDomainEventsDispatcher domainEventsDispatcher)
 {
     this._bdcontext = bdcontext;
     this._domainEventsDispatcher = domainEventsDispatcher;
 }
コード例 #8
0
 public RegisterUserCommandHandler(IUserManger userManger, IDomainEventsDispatcher domainEventsDispatcher)
 {
     EnsureArg.IsNotNull(domainEventsDispatcher);
     EnsureArg.IsNotNull(userManger);
     this.userManger             = userManger;
     this.domainEventsDispatcher = domainEventsDispatcher;
 }
コード例 #9
0
 public UnitOfWork(
     AppDbContext appContext,
     IDomainEventsDispatcher domainEventsDispatcher)
 {
     this._appContext             = appContext;
     this._domainEventsDispatcher = domainEventsDispatcher;
 }
コード例 #10
0
 public UnitOfWork(
     OrdersContext ordersContext,
     IDomainEventsDispatcher domainEventsDispatcher)
 {
     this._ordersContext          = ordersContext;
     this._domainEventsDispatcher = domainEventsDispatcher;
 }
コード例 #11
0
 public UnitOfWork(
     RecruitmentContext recruitmentContext,
     IDomainEventsDispatcher domainEventsDispatcher)
 {
     this._recruitmentContext     = recruitmentContext;
     this._domainEventsDispatcher = domainEventsDispatcher;
 }
コード例 #12
0
 public CreateCourseCommandHandler(ICoursesRepository coursesRepository,
                                   ICourseHolderRespository courseHolderRespository, IDomainEventsDispatcher eventsDispatcher)
 {
     EnsureArg.IsNotNull(coursesRepository);
     this.coursesRepository       = coursesRepository;
     this.courseHolderRespository = courseHolderRespository;
     this.eventsDispatcher        = eventsDispatcher;
 }
コード例 #13
0
ファイル: UnitOfWork.cs プロジェクト: kowalski77/MediatRStudy
 public UnitOfWork(
     IMongoDatabase mongoDatabase,
     ISessionHolder sessionHolder,
     IDomainEventsDispatcher domainEventsDispatcher)
 {
     this.mongoDatabase          = mongoDatabase ?? throw new ArgumentNullException(nameof(mongoDatabase));
     this.sessionHolder          = sessionHolder ?? throw new ArgumentNullException(nameof(sessionHolder));
     this.domainEventsDispatcher = domainEventsDispatcher ?? throw new ArgumentNullException(nameof(domainEventsDispatcher));
 }
コード例 #14
0
 internal CalendarRepository(SchedulingContext schedulingContext,
                             ISqlConnectionFactory sqlConnectionFactory,
                             IDomainEventsDispatcher domainEventsDispatcher
                             )
 {
     _sqlConnectionFactory   = sqlConnectionFactory;
     _schedulingContext      = schedulingContext;
     _domainEventsDispatcher = domainEventsDispatcher;
 }
 public DomainEventDecoratorNotificationHandler(
     INotificationHandler <TEvent> intercepted,
     IDomainEventsDispatcher domainEventsDispatcher,
     ILogger <DomainEventDecoratorNotificationHandler <TEvent> > logger)
 {
     this.intercepted            = intercepted ?? throw new ArgumentNullException(nameof(intercepted));
     this.domainEventsDispatcher = domainEventsDispatcher ?? throw new ArgumentNullException(nameof(domainEventsDispatcher));
     this.logger = logger ?? throw new ArgumentNullException(nameof(logger));
 }
コード例 #16
0
 public AppDbContext(
     DbContextOptions <AppDbContext> options,
     IDomainEventsDispatcher domainEventsDispatcher,
     IMediator mediator)
     : base(options)
 {
     _domainEventsDispatcher = domainEventsDispatcher;
     _mediator = mediator;
 }
 public DomainEventsDispatcherCommandHandlerDecorator(
     IRequestHandler <T, TResponse> decorated,
     DbDataContext db,
     IDomainEventsDispatcher domainEventsDispatcher
     )
 {
     _domainEventsDispatcher = domainEventsDispatcher;
     _db        = db;
     _decorated = decorated;
 }
コード例 #18
0
ファイル: UnitOfWork.cs プロジェクト: monaygod/GrajFer
 public UnitOfWork(
     TContext dbContext, IDomainEventsDispatcher domainEventsDispatcher,
     IIntegrationEventDispatcher <TContext> integrationEventDispatcher
     )
 {
     this._dbContext = dbContext;
     this._domainEventsDispatcher = domainEventsDispatcher;
     _integrationEventDispatcher  = integrationEventDispatcher;
     _domainEventSource           = new List <Entity>();
 }
コード例 #19
0
 public AddContentCommandHandler(IFileRepository fileRepository,
                                 IContentHolderRepository contentHolderRepository, IDomainEventsDispatcher
                                 eventsDispatcher)
 {
     EnsureArg.IsNotNull(contentHolderRepository);
     EnsureArg.IsNotNull(eventsDispatcher);
     EnsureArg.IsNotNull(fileRepository);
     this.fileRepository          = fileRepository;
     this.contentHolderRepository = contentHolderRepository;
     this.eventsDispatcher        = eventsDispatcher;
 }
コード例 #20
0
 public PaymentsUnitOfWork(
     IOutbox outbox,
     IAggregateStore aggregateStore,
     IDomainEventsDispatcher domainEventsDispatcher,
     ISqlConnectionFactory sqlConnectionFactory)
 {
     _outbox                 = outbox;
     _aggregateStore         = aggregateStore;
     _domainEventsDispatcher = domainEventsDispatcher;
     _sqlConnectionFactory   = sqlConnectionFactory;
 }
コード例 #21
0
        public UnitOfWork(
            T context,
            IDomainEventsDispatcher domainEventsDispatcher)
        {
            var hash = context.GetHashCode();

            Console.WriteLine(hash);

            this.context = context;
            this.domainEventsDispatcher = domainEventsDispatcher;
        }
コード例 #22
0
 public UnitOfWork(ApplicationDbContext dbContext, IDomainEventsDispatcher domainEventsDispatcher)
 {
     _dbContext = dbContext;
     _domainEventsDispatcher = domainEventsDispatcher;
 }
コード例 #23
0
 public AggregateRootRepository(IDomainEventsDispatcher <TId> dispatcher, IEventStore <TId> eventStore)
 {
     _dispatcher = dispatcher;
     _eventStore = eventStore;
 }
コード例 #24
0
 public UnitOfWork(
     IDomainEventsDispatcher domainEventsDispatcher, RestaurantManagementContext context)
 {
     _domainEventsDispatcher = domainEventsDispatcher;
     _context = context;
 }
コード例 #25
0
ファイル: UnitOfWork.cs プロジェクト: stevix77/BetFriend.Api
 public UnitOfWork(DbContext dbContext, IDomainEventsDispatcher domainEventsDispatcher)
 {
     _dbContext = dbContext ?? throw new System.ArgumentNullException(nameof(dbContext));
     _domainEventsDispatcher = domainEventsDispatcher ?? throw new System.ArgumentNullException(nameof(domainEventsDispatcher));
 }
コード例 #26
0
 public DomainEventsDispatcherNotificationHandlerDecorator(INotificationHandler <T> decorated, IDomainEventsDispatcher domainEventsDispatcher)
 {
     _decorated = decorated;
     _domainEventsDispatcher = domainEventsDispatcher;
 }
コード例 #27
0
 public UnitOfWork(IDomainEventsDispatcher domainEventsDispatcher, BookingContext ctx)
 {
     this.domainEventsDispatcher = domainEventsDispatcher;
     this.ctx = ctx;
 }
コード例 #28
0
 public OrdersContext(DbContextOptions <OrdersContext> options, IDomainEventsDispatcher domainEventsDispatcher, IMediator mediator) : base(options)
 {
     this._domainEventsDispatcher = domainEventsDispatcher;
     this._mediator = mediator;
 }
コード例 #29
0
 public Repository(TopocatContext context, IDomainEventsDispatcher domainEventsDispatcher)
 {
     _context = context;
     _domainEventsDispatcher = domainEventsDispatcher;
 }
コード例 #30
0
ファイル: UnitOfWork.cs プロジェクト: dananw/booking-app
 public UnitOfWork(IDomainEventsDispatcher domainEventsDispatcher, AccessibilityContext ctx)
 {
     this.domainEventsDispatcher = domainEventsDispatcher;
     this.ctx = ctx;
 }