Exemple #1
0
 public CosmosDBMembershipTable(ILoggerFactory loggerFactory, IOptions <ClusterOptions> clusterOptions, IOptions <CosmosDBClusteringOptions> clusteringOptions)
 {
     this._clusterOptions = clusterOptions.Value;
     this._loggerFactory  = loggerFactory;
     this._logger         = loggerFactory?.CreateLogger <CosmosDBMembershipTable>();
     this._options        = clusteringOptions.Value;
 }
Exemple #2
0
 public CosmosDBMembershipTable(ILoggerFactory loggerFactory, IOptions <ClusterOptions> clusterOptions, IOptions <CosmosDBClusteringOptions> clusteringOptions)
 {
     this._clusterOptions = clusterOptions.Value;
     this._loggerFactory  = loggerFactory;
     this._logger         = loggerFactory?.CreateLogger <CosmosDBMembershipTable>();
     this._options        = clusteringOptions.Value;
     this._sprocFiles     = new Dictionary <string, string>
     {
         { DELETE_ALL_SPROC, $"{DELETE_ALL_SPROC}.js" },
         { GET_ALIVE_GATEWAYS_SPROC, $"{GET_ALIVE_GATEWAYS_SPROC}.js" },
         { INSERT_SILO_SPROC, $"{INSERT_SILO_SPROC}.js" },
         { READ_ALL_SPROC, $"{READ_ALL_SPROC}.js" },
         { READ_SILO_SPROC, $"{READ_SILO_SPROC}.js" },
         { UPDATE_I_AM_ALIVE_SPROC, $"{UPDATE_I_AM_ALIVE_SPROC}.js" },
         { UPDATE_SILO_SPROC, $"{UPDATE_SILO_SPROC}.js" },
     };
 }