Пример #1
0
 public SettingsChangesAuditRepository(IReloadingManager <MarginTradingMarketMakerSettings> settings, ILog log,
                                       IConvertService convertService, IAzureTableStorageFactoryService azureTableStorageFactoryService)
 {
     _convertService = convertService;
     _tableStorage   = azureTableStorageFactoryService.Create <SettingsChangesAuditEntity>(
         settings.Nested(s => s.Db.ConnectionString), "MarketMakerChangesAuditLog", log);
 }
Пример #2
0
        public AccountsRepository(IReloadingManager <AccountManagementSettings> settings, ILog log,
                                  IConvertService convertService, IAzureTableStorageFactoryService azureTableStorageFactoryService)
        {
            _convertService = convertService;

            _tableStorage = azureTableStorageFactoryService.Create <AccountEntity>(
                settings.Nested(s => s.Db.ConnectionString), "MarginTradingAccounts", log);
        }
Пример #3
0
 public AccountBalanceChangesRepository(IReloadingManager <AccountManagementSettings> settings,
                                        ILog log,
                                        IConvertService convertService,
                                        ISystemClock systemClock,
                                        IAzureTableStorageFactoryService azureTableStorageFactoryService)
 {
     _convertService = convertService;
     _systemClock    = systemClock;
     _tableStorage   =
         azureTableStorageFactoryService.Create <AccountBalanceChangeEntity>(
             settings.Nested(s => s.Db.ConnectionString), "AccountHistory", log);
 }
Пример #4
0
 public OperationExecutionInfoRepository(IReloadingManager <AccountManagementSettings> settings,
                                         IAzureTableStorageFactoryService azureTableStorageFactoryService, ILog log,
                                         ISystemClock systemClock)
 {
     _systemClock          = systemClock;
     _enableOperationsLogs = settings.CurrentValue.EnableOperationsLogs;
     _tableStorage         = azureTableStorageFactoryService.Create <OperationExecutionInfoEntity>(
         settings.Nested(s => s.Db.ConnectionString),
         "OperationExecutionInfo",
         log);
     _log = log.CreateComponentScope(nameof(OperationExecutionInfoRepository));
 }