Esempio n. 1
0
 public QueuedDataSavingService(ILoggerFactory factory, IBackgroundDataSavingTasksQueue backgroundDataSavingTasksQueue,
                                IServiceProvider serviceProvider)
 {
     _logger = factory.CreateLogger("Background-queue");
     _scope  = serviceProvider.CreateScope();
     DataSavingTasksQueue = backgroundDataSavingTasksQueue;
 }
Esempio n. 2
0
        public DataGeneratorController(IMapperFactory mapperFactory,
                                       IDataGeneratorService dataGenerator,
                                       IDatasetService dateService,
                                       IGeneratedObjectFileSystemService generatedObjectFileSystemService,
                                       IBackgroundDataSavingTasksQueue backgroundDataSavingTasksQueue) : base(mapperFactory)
        {
            _dataGenerator  = dataGenerator;
            _datasetService = dateService;
            _generatedObjectFileSystemService = generatedObjectFileSystemService;

            _converters["xml"]  = Converter.ObjectToXml;
            _converters["json"] = Converter.ObjectToJson;

            _backgroundDataSavingTasksQueue = backgroundDataSavingTasksQueue;
        }