Example #1
0
 public TokenController(IMemoryFlow flow, IOptions <ApplicationOptions> options, PageFactoryManager pageFactoryManager, ILogger <TokenController> logger)
 {
     _flow               = flow;
     _options            = options.Value;
     _pageFactoryManager = pageFactoryManager;
     _logger             = logger;
 }
Example #2
0
 public NGeniusClient(IOptions <NGeniusOptions> options, IHttpClientFactory clientFactory, IMemoryFlow <string> cache,
                      IOptions <SenderOptions> senderOptions)
 {
     _options       = options.Value;
     _cache         = cache;
     _clientFactory = clientFactory;
     _senderOptions = senderOptions.Value;
 }
 public HttpBasedAgentContextService(EdoContext context,
                                     ITokenInfoAccessor tokenInfoAccessor,
                                     IHttpContextAccessor httpContextAccessor,
                                     IMemoryFlow flow)
 {
     _context             = context;
     _tokenInfoAccessor   = tokenInfoAccessor;
     _httpContextAccessor = httpContextAccessor;
     _flow = flow;
 }
Example #4
0
 public MarkupService(IMarkupPolicyService markupPolicyService,
                      IDiscountFunctionService discountFunctionService,
                      IMarkupPolicyTemplateService templateService,
                      ICurrencyRateService currencyRateService,
                      IMemoryFlow flow)
 {
     _markupPolicyService     = markupPolicyService;
     _discountFunctionService = discountFunctionService;
     _templateService         = templateService;
     _currencyRateService     = currencyRateService;
     _flow = flow;
 }
Example #5
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;
        }
    }
Example #6
0
    public static string BuildKey <T>(this IMemoryFlow <T> cache, params string[] keyComponents) where T : class
    {
        var delimiter = cache.Options.CacheKeyDelimiter;

        return(BuildInternal(delimiter, keyComponents));
    }
Example #7
0
 public MultiProviderAvailabilityStorage(IDistributedFlow distributedFlow, IMemoryFlow memoryFlow)
 {
     _distributedFlow = distributedFlow;
     _memoryFlow      = memoryFlow;
 }
Example #8
0
    public MemoryFlow(IMemoryFlow cache, IOptions <FlowOptions> options)
    {
        _cache = cache;

        _keyPrefix = GetFullCacheKeyPrefix(typeof(TClass).FullName !, options.Value.CacheKeyDelimiter);
    }
Example #9
0
 public AgentContextService(ITokenInfoAccessor tokenInfoAccessor, IMemoryFlow flow, EdoContext context)
 {
     _tokenInfoAccessor = tokenInfoAccessor;
     _flow    = flow;
     _context = context;
 }
Example #10
0
 public WideAvailabilityAccommodationsStorage(IMemoryFlow flow, IAccommodationMapperClient mapperClient)
 {
     _flow         = flow;
     _mapperClient = mapperClient;
 }