AngularAzureSearch.WebAPI.PartitionResolvers.SpilloverPartitionResolver.SpilloverPartitionResolver C# (CSharp) Метод

SpilloverPartitionResolver() публичный Метод

Initializes a new instance of the SpilloverPartitionResolver class.
public SpilloverPartitionResolver ( Microsoft.Azure.Documents.Client.DocumentClient client, Microsoft.Azure.Documents.Database database, DocumentCollectionSpec collectionSpec = null, string collectionIdPrefix = "Collection.", double fillFactor = 0.90, double checkIntervalSeconds = 3600 ) : System
client Microsoft.Azure.Documents.Client.DocumentClient The DocumentDB client instance.
database Microsoft.Azure.Documents.Database The database to use.
collectionSpec AngularAzureSearch.WebAPI.Helpers.DocumentCollectionSpec The specification/template to create collections from.
collectionIdPrefix string The prefix to use for collections.
fillFactor double The fill factor for spilling over collections.
checkIntervalSeconds double The interval between collection size checks.
Результат System
        public SpilloverPartitionResolver(
            DocumentClient client,
            Database database,
            DocumentCollectionSpec collectionSpec = null,
            string collectionIdPrefix = "Collection.",
            double fillFactor = 0.90,
            double checkIntervalSeconds = 3600)
        {
            this.Client = client;
            this.Database = database;
            this.CollectionTemplate = collectionSpec;
            this.CollectionLinks = GetCollections(client, database, collectionIdPrefix, collectionSpec);
            this.CollectionIdPrefix = collectionIdPrefix;
            this.FillFactor = fillFactor;
            this.CheckInterval = TimeSpan.FromSeconds(checkIntervalSeconds);
        }