public ObjectsStorageReader(
     VStoreContext context,
     CdnOptions cdnOptions,
     ITemplatesStorageReader templatesStorageReader,
     DistributedLockManager distributedLockManager)
 {
     _context                = context;
     _cdnOptions             = cdnOptions;
     _templatesStorageReader = templatesStorageReader;
     _distributedLockManager = distributedLockManager;
 }
 public TemplatesManagementService(
     VStoreContext context,
     UploadFileOptions uploadFileOptions,
     ITemplatesStorageReader templatesStorageReader,
     DistributedLockManager distributedLockManager)
 {
     _context = context;
     _templatesStorageReader = templatesStorageReader;
     _distributedLockManager = distributedLockManager;
     _maxBinarySize          = uploadFileOptions.MaxBinarySize;
 }
Example #3
0
 public ObjectsManagementService(
     ILogger <ObjectsManagementService> logger,
     KafkaOptions kafkaOptions,
     VStoreContext context,
     ITemplatesStorageReader templatesStorageReader,
     IObjectsStorageReader objectsStorageReader,
     SessionStorageReader sessionStorageReader,
     DistributedLockManager distributedLockManager,
     IEventSender eventSender,
     MetricsProvider metricsProvider)
 {
     _logger  = logger;
     _context = context;
     _templatesStorageReader   = templatesStorageReader;
     _objectsStorageReader     = objectsStorageReader;
     _sessionStorageReader     = sessionStorageReader;
     _distributedLockManager   = distributedLockManager;
     _eventSender              = eventSender;
     _objectEventsTopic        = kafkaOptions.ObjectEventsTopic;
     _referencedBinariesMetric = metricsProvider.GetReferencedBinariesMetric();
 }
Example #4
0
 public TemplatesStorageReader(VStoreContext context, IMemoryCache memoryCache)
 {
     _context     = context;
     _memoryCache = memoryCache;
 }