public TsdbClient( IStorageSelector <TKey, TEntry> storageSelector, IPublishSubscribe <TKey, TEntry> remotePublishSubscribe, ITemporaryStorage <TKey, TEntry> temporaryStorage, ITsdbLogger logger) { _storageSelector = storageSelector; _remotePublishSubscribe = remotePublishSubscribe; _temporaryStorage = temporaryStorage; _localPublishSubscribe = new DefaultPublishSubscribe <TKey, TEntry>(false); _logger = logger; }
public TsdbClient( IDynamicStorageSelector <TKey, TEntry> dynamicStorageSelector, IVolumeStorageSelector <TKey, TEntry> volumeStorageSelector, IPublishSubscribe <TKey, TEntry> remotePublishSubscribe, ITemporaryStorage <TKey, TEntry> temporaryStorage, ITsdbLogger logger) { _dynamicStorageSelector = dynamicStorageSelector; _volumeStorageSelector = volumeStorageSelector; _remotePublishSubscribe = remotePublishSubscribe; _temporaryStorage = temporaryStorage; _localPublishSubscribe = new DefaultPublishSubscribe <TKey, TEntry>(false); _logger = logger; _migrations = new MigrationProvider <TKey, TEntry>(_dynamicStorageSelector, _volumeStorageSelector); }