Ejemplo n.º 1
0
 public BookingStatusRefreshService(IDistributedFlow flow,
                                    IDateTimeProvider dateTimeProvider, ISupplierBookingManagementService supplierBookingManagement,
                                    EdoContext context, IOptionsMonitor <BookingStatusUpdateOptions> statusUpdateOptionsMonitor)
 {
     _flow                       = flow;
     _dateTimeProvider           = dateTimeProvider;
     _supplierBookingManagement  = supplierBookingManagement;
     _context                    = context;
     _statusUpdateOptionsMonitor = statusUpdateOptionsMonitor;
 }
 public NetstormingResponseService(
     IConnectorClient connectorClient,
     IDistributedFlow flow,
     IBookingRecordsManager bookingRecordsManager,
     IBookingResponseProcessor responseProcessor,
     IOptions <SupplierOptions> supplierOptions,
     ILogger <NetstormingResponseService> logger)
 {
     _connectorClient       = connectorClient;
     _supplierOptions       = supplierOptions.Value;
     _flow                  = flow;
     _bookingRecordsManager = bookingRecordsManager;
     _responseProcessor     = responseProcessor;
     _logger                = logger;
 }
Ejemplo n.º 3
0
    public DoubleFlow(IDistributedFlow distributed, IMemoryFlow memory, ILogger <DoubleFlow>?logger = default, IOptions <FlowOptions>?options = default)
    {
        _distributed = distributed;
        _memory      = memory;

        if (options is null)
        {
            logger?.LogNoOptionsProvided(nameof(DoubleFlow));
            Options = new FlowOptions();
        }
        else
        {
            Options = options.Value;
        }
    }
        private static BookingStatusRefreshService CreateBookingStatusRefreshService(IDistributedFlow flow, ISupplierBookingManagementService supplierService, List <Suppliers>?disabledSuppliers = null)
        {
            var context          = CreateContext();
            var dateTimeProvider = new DateTimeProviderMock(DateTimeNow);
            var monitor          = Mock.Of <IOptionsMonitor <BookingStatusUpdateOptions> >(_ => _.CurrentValue == new BookingStatusUpdateOptions
            {
                DisabledSuppliers = disabledSuppliers ?? new List <Suppliers>()
            });

            return(new BookingStatusRefreshService(
                       flow,
                       dateTimeProvider,
                       supplierService,
                       context,
                       monitor
                       ));
        }
Ejemplo n.º 5
0
    public static string BuildKey(this IDistributedFlow cache, params string[] keyComponents)
    {
        var delimiter = cache.Options.CacheKeyDelimiter;

        return(BuildInternal(delimiter, keyComponents));
    }
Ejemplo n.º 6
0
 public MultiProviderAvailabilityStorage(IDistributedFlow distributedFlow, IMemoryFlow memoryFlow)
 {
     _distributedFlow = distributedFlow;
     _memoryFlow      = memoryFlow;
 }
 public AvailabilityDataStorage(IDistributedFlow distributedFlow)
 {
     _distributedFlow = distributedFlow;
 }
Ejemplo n.º 8
0
 public AvailabilitySearchStorage(IDistributedFlow distributedFlow)
 {
     _distributedFlow = distributedFlow;
 }
 public AvailabilityIdMatchingService(IDistributedFlow distributedFlow)
 {
     _distributedFlow = distributedFlow;
 }
Ejemplo n.º 10
0
        public DistributedFlow(IDistributedFlow cache, IOptions <FlowOptions> options)
        {
            _cache = cache;

            _keyPrefix = GetFullCacheKeyPrefix(typeof(TClass).FullName !, options.Value.CacheKeyDelimiter);
        }