public CosmosDBReminderTable( IGrainReferenceConverter grainReferenceConverter, ILoggerFactory loggerFactory, IOptions <ClusterOptions> clusterOptions, IOptions <CosmosDBReminderStorageOptions> options) { this._loggerFactory = loggerFactory; this._logger = loggerFactory.CreateLogger(nameof(CosmosDBReminderTable)); this._options = options.Value; this._grainReferenceConverter = grainReferenceConverter; this._serviceId = string.IsNullOrWhiteSpace(clusterOptions.Value.ServiceId) ? Guid.Empty.ToString() : clusterOptions.Value.ServiceId; }
public CosmosDBReminderTable( IGrainReferenceConverter grainReferenceConverter, ILoggerFactory loggerFactory, IOptions <ClusterOptions> _clusterOptions, IOptions <CosmosDBReminderStorageOptions> options) { this._loggerFactory = loggerFactory; this._logger = loggerFactory.CreateLogger(nameof(CosmosDBReminderTable)); this._options = options.Value; this._grainReferenceConverter = grainReferenceConverter; this._serviceId = string.IsNullOrWhiteSpace(_clusterOptions.Value.ServiceId) ? Guid.Empty : Guid.Parse(_clusterOptions.Value.ServiceId); this._sprocFiles = new Dictionary <string, string> { { READ_RANGE_ROW_SPROC, $"{READ_RANGE_ROW_SPROC}.js" }, { READ_ROW_SPROC, $"{READ_ROW_SPROC}.js" }, { READ_ROWS_SPROC, $"{READ_ROWS_SPROC}.js" }, { DELETE_ROW_SPROC, $"{DELETE_ROW_SPROC}.js" }, { UPSERT_ROW_SPROC, $"{UPSERT_ROW_SPROC}.js" }, { DELETE_ROWS_SPROC, $"{DELETE_ROWS_SPROC}.js" } }; }