public async Task <QuickOrder> CreateQuickOrderAsync( [GraphQLType(typeof(CreateQuickOrderInputType))][GraphQLName("input")] CreateQuickOrderCommand input, [Service] ISheaftMediatr mediatr, QuickOrdersByIdBatchDataLoader quickOrdersDataLoader, CancellationToken token) { var result = await ExecuteAsync <CreateQuickOrderCommand, Guid>(mediatr, input, token); return(await quickOrdersDataLoader.LoadAsync(result, token)); }
public async Task <QuickOrder> UpdateQuickOrderAsync( [GraphQLType(typeof(UpdateQuickOrderInputType))][GraphQLName("input")] UpdateQuickOrderCommand input, [Service] ISheaftMediatr mediatr, QuickOrdersByIdBatchDataLoader quickOrdersDataLoader, CancellationToken token) { await ExecuteAsync(mediatr, input, token); return(await quickOrdersDataLoader.LoadAsync(input.QuickOrderId, token)); }
public RefusePurchaseOrderCommandHandler( IAppDbContext context, ISheaftMediatr mediatr, ITableService tableService, ILogger <RefusePurchaseOrderCommandHandler> logger) : base(mediatr, context, logger) { _tableService = tableService; }
public CreatePayoutCommandHandler( ISheaftMediatr mediatr, IAppDbContext context, IPspService pspService, ILogger <CreatePayoutCommandHandler> logger) : base(mediatr, context, logger) { _pspService = pspService; }
public UpdateConsumerOrderCommandHandler( IAppDbContext context, ISheaftMediatr mediatr, IOrderService orderService, ILogger <UpdateConsumerOrderCommandHandler> logger) : base(mediatr, context, logger) { _orderService = orderService; }
public DashboardController( IAppDbContext context, IMapper mapper, ISheaftMediatr mediatr, IConfigurationProvider configurationProvider, IOptionsSnapshot <RoleOptions> roleOptions) : base(context, mapper, roleOptions, mediatr, configurationProvider) { }
public RefreshPreAuthorizationStatusCommandHandler( IAppDbContext context, ISheaftMediatr mediatr, IPspService pspService, ILogger <RefreshPreAuthorizationStatusCommandHandler> logger) : base(mediatr, context, logger) { _pspService = pspService; }
public RefreshWithholdingStatusCommandHandler( ISheaftMediatr mediatr, IAppDbContext context, IPspService pspService, ILogger <RefreshWithholdingStatusCommandHandler> logger) : base(mediatr, context, logger) { _pspService = pspService; }
public async Task <IEnumerable <BusinessClosing> > UpdateOrCreateBusinessClosingsAsync( [GraphQLType(typeof(UpdateOrCreateBusinessClosingsInputType))][GraphQLName("input")] UpdateOrCreateBusinessClosingsCommand input, [Service] ISheaftMediatr mediatr, BusinessClosingsByIdBatchDataLoader businessClosingsDataLoader, CancellationToken token) { var result = await ExecuteAsync <UpdateOrCreateBusinessClosingsCommand, IEnumerable <Guid> >(mediatr, input, token); return(await businessClosingsDataLoader.LoadAsync(result.ToList(), token)); }
public async Task <IEnumerable <PurchaseOrder> > CreateBusinessOrderAsync( [GraphQLType(typeof(CreateBusinessOrderInputType))][GraphQLName("input")] CreateBusinessOrderCommand input, [Service] ISheaftMediatr mediatr, PurchaseOrdersByIdBatchDataLoader purchaseOrdersDataLoader, CancellationToken token) { var result = await ExecuteAsync <CreateBusinessOrderCommand, IEnumerable <Guid> >(mediatr, input, token); return(await purchaseOrdersDataLoader.LoadAsync(result.ToList(), token)); }
public async Task <Job> ExportBillingsAsync( [GraphQLType(typeof(QueueExportBillingsInputType))][GraphQLName("input")] QueueExportBillingsCommand input, [Service] ISheaftMediatr mediatr, JobsByIdBatchDataLoader jobsDataLoader, CancellationToken token) { var result = await ExecuteAsync <QueueExportBillingsCommand, Guid>(mediatr, input, token); return(await jobsDataLoader.LoadAsync(result, token)); }
public async Task <DeliveryClosing> UpdateOrCreateDeliveryClosingAsync( [GraphQLType(typeof(UpdateOrCreateDeliveryClosingInputType))][GraphQLName("input")] UpdateOrCreateDeliveryClosingCommand input, [Service] ISheaftMediatr mediatr, DeliveryClosingsByIdBatchDataLoader businessClosingsDataLoader, CancellationToken token) { var result = await ExecuteAsync <UpdateOrCreateDeliveryClosingCommand, Guid>(mediatr, input, token); return(await businessClosingsDataLoader.LoadAsync(result, token)); }
public SendPageCommandHandler( IAppDbContext context, IPspService pspService, IBlobService blobService, ISheaftMediatr mediatr, ILogger <SendPageCommandHandler> logger) : base(mediatr, context, logger) { _pspService = pspService; _blobService = blobService; }
public SendRecallCommandHandler( ISheaftMediatr mediatr, IAppDbContext context, ICurrentUserService currentUserService, IOptionsSnapshot <RoleOptions> roleOptions, ILogger <SendRecallCommandHandler> logger) : base(mediatr, context, logger) { _currentUserService = currentUserService; _roleOptions = roleOptions.Value; }
public CreatePurchaseOrderCommandHandler( IAppDbContext context, ISheaftMediatr mediatr, IIdentifierService identifierService, ITableService tableService, ILogger <CreatePurchaseOrderCommandHandler> logger) : base(mediatr, context, logger) { _identifierService = identifierService; _tableService = tableService; }
public ExportBillingsCommandHandler( ISheaftMediatr mediatr, IAppDbContext context, IBlobService blobService, IBillingsExportersFactory billingsExportersFactory, ILogger <ExportBillingsCommandHandler> logger) : base(mediatr, context, logger) { _blobService = blobService; _billingsExportersFactory = billingsExportersFactory; }
public UpdateProducerCommandHandler( IAppDbContext context, ISheaftMediatr mediatr, IPictureService imageService, ILogger <UpdateProducerCommandHandler> logger, IOptionsSnapshot <RoleOptions> roleOptions) : base(mediatr, context, logger) { _imageService = imageService; _roleOptions = roleOptions.Value; }
public CreateConsumerOrderCommandHandler( IAppDbContext context, ISheaftMediatr mediatr, IOrderService orderService, IOptionsSnapshot <PspOptions> pspOptions, ILogger <CreateConsumerOrderCommandHandler> logger) : base(mediatr, context, logger) { _orderService = orderService; _pspOptions = pspOptions.Value; }
public DocumentsController( IAppDbContext context, IMapper mapper, IBlobService blobService, ISheaftMediatr mediatr, IOptionsSnapshot <RoleOptions> roleOptions, IConfigurationProvider configurationProvider) : base(context, mapper, roleOptions, mediatr, configurationProvider) { _blobService = blobService; }
public GenerateDeliveryFormCommandHandler( ISheaftMediatr mediatr, IAppDbContext context, IPdfGenerator pdfGenerator, IBlobService blobService, ILogger <GenerateDeliveryFormCommandHandler> logger) : base(mediatr, context, logger) { _pdfGenerator = pdfGenerator; _blobService = blobService; }
public ExportPickingOrderCommandHandler( ISheaftMediatr mediatr, IAppDbContext context, IBlobService blobsService, IPickingOrdersExportersFactory pickingOrdersExportersFactory, ILogger <ExportPickingOrderCommandHandler> logger) : base(mediatr, context, logger) { _blobsService = blobsService; _pickingOrdersExportersFactory = pickingOrdersExportersFactory; }
public async Task <DateTimeOffset> MarkMyNotificationsAsReadAsync([Service] ISheaftMediatr mediatr, CancellationToken token) { var input = new MarkUserNotificationsAsReadCommand(CurrentUser) { ReadBefore = DateTimeOffset.UtcNow }; await ExecuteAsync(mediatr, input, token); return(input.ReadBefore); }
public GenerateStoresFileCommandHandler( IAppDbContext context, ISheaftMediatr mediatr, IBlobService blobService, IIdSerializer idSerializer, ILogger <GenerateStoresFileCommandHandler> logger) : base(mediatr, context, logger) { _blobService = blobService; _idSerializer = idSerializer; }
public DeliveryFormGeneratedEventHandler( ISheaftMediatr mediatr, IAppDbContext context, IEmailService emailService, IBlobService blobService, ISignalrService signalrService) : base(context, emailService, signalrService) { _mediatr = mediatr; _blobService = blobService; }
public CreateProductCommandHandler( ISheaftMediatr mediatr, IAppDbContext context, IPictureService imageService, IIdentifierService identifierService, ILogger <CreateProductCommandHandler> logger) : base(mediatr, context, logger) { _imageService = imageService; _identifierService = identifierService; }
public RefreshLegalValidationCommandHandler( ISheaftMediatr mediatr, IAppDbContext context, IPspService pspService, IOptionsSnapshot <PspOptions> pspOptions, ILogger <RefreshLegalValidationCommandHandler> logger) : base(mediatr, context, logger) { _pspOptions = pspOptions.Value; _pspService = pspService; }
public ExportTransactionsCommandHandler( ISheaftMediatr mediatr, IAppDbContext context, IBlobService blobService, ITransactionsExportersFactory transactionsExportersFactory, ILogger <ExportTransactionsCommandHandler> logger) : base(mediatr, context, logger) { _blobService = blobService; _transactionsExportersFactory = transactionsExportersFactory; }
public UpdateAuthUserCommandHandler( ISheaftMediatr mediatr, IAppDbContext context, IAuthService authService, IDistributedCache cache, ILogger <UpdateAuthUserCommandHandler> logger) : base(mediatr, context, logger) { _authService = authService; _cache = cache; }
public async Task <PreAuthorization> CreatePreAuthorization( [GraphQLType(typeof(CreatePreAuthorizationForOrderInputType))][GraphQLName("input")] CreatePreAuthorizationForOrderCommand input, [Service] ISheaftMediatr mediatr, PreAuthorizationsByIdBatchDataLoader preAuthorizationsDataLoader, CancellationToken token) { input.IpAddress = _httpContextAccessor.HttpContext.Connection.RemoteIpAddress.ToString(); input.BrowserInfo.AcceptHeader = _httpContextAccessor.HttpContext.Request.Headers["Accept"]; var result = await ExecuteAsync <CreatePreAuthorizationForOrderCommand, Guid>(mediatr, input, token); return(await preAuthorizationsDataLoader.LoadAsync(result, token)); }
public ImportProductsCommandHandler( ISheaftMediatr mediatr, IAppDbContext context, IBlobService blobService, IMapper mapper, IProductsImporterFactory productsImporterFactory, ILogger <ImportProductsCommandHandler> logger) : base(mediatr, context, logger) { _blobService = blobService; _mapper = mapper; _productsImporterFactory = productsImporterFactory; }