Пример #1
0
 protected CommandHandler(ArchDbContext architectureContext, IDomainNotification notifications, IEventRepository eventRepository, EventSourcingContext eventSourcingContext)
 {
     _architectureContext  = architectureContext;
     _notifications        = notifications;
     _eventRepository      = eventRepository;
     _eventSourcingContext = eventSourcingContext;
 }
Пример #2
0
 public CustomerCommandHandler(
     ArchDbContext architectureContext,
     IDomainNotification notifications,
     IEventRepository eventRepository,
     EventSourcingContext eventSourcingContext) : base(architectureContext, notifications, eventRepository, eventSourcingContext)
 {
     _architectureContext = architectureContext;
 }
 public ListCommandHandler(
     ArchDbContext architectureContext,
     EventSourcingContext eventSourcingContext,
     IDomainNotification notifications)
 {
     _architectureContext  = architectureContext;
     _eventSourcingContext = eventSourcingContext;
     _notifications        = notifications;
 }
Пример #4
0
 public ProductQueryHandler(ArchDbContext architectureContext)
 {
     _architectureContext = architectureContext;
 }
 public CartCommandHandler(ArchDbContext context)
 {
     _context = context;
 }
Пример #6
0
 public ArchManager(ArchDbContext <TArch> archDbContext)
 {
     this.archDbContext = archDbContext;
 }
Пример #7
0
 public CsvQueryHandler(ArchDbContext architectureContext)
 {
     _architectureContext = architectureContext;
 }
Пример #8
0
 public CustomerQueryHandler(ArchDbContext architectureContext, EventSourcingContext eventSourcingContext)
 {
     _architectureContext  = architectureContext;
     _eventSourcingContext = eventSourcingContext;
 }
Пример #9
0
 public TasksService(HttpClient httpClient, ArchDbContext <MyArch> archDbContext)
 {
     this.httpClient    = httpClient;
     this.archDbContext = archDbContext;
 }
 public OderItemQueryHandler(ArchDbContext architectureContext)
 {
     _architectureContext = architectureContext;
 }
 public OrderItemCommandHandler(ArchDbContext architectureContext)
 {
     _architectureContext = architectureContext;
 }
Пример #12
0
        public IEnumerable <T> GetAll(string order)
        {
            var context = new ArchDbContext();

            return(context.Set <T>().ToList().OrderBy(_ => _.GetType().GetProperty(order).GetValue(_, null)));
        }
 public UserHandler(ArchDbContext archDbContext)
 {
     _archDbContext = archDbContext;
 }