public CosmosDBMongoTargetScaler()

in Microsoft.Azure.WebJobs.Extensions.AzureCosmosDb.Mongo/Trigger/CosmosDBMongoTargetScaler.cs [23:40]


        public CosmosDBMongoTargetScaler(
            string functionName,
            string databaseName,
            string collectionName,
            ILoggerFactory loggerFactory,
            int maxWorkPerInstance = 1000,
            int maxWorkInstance = 3
            )
        {
            this._functionId = functionName;
            this._databaseName = databaseName;
            this._collectionName = collectionName;
            this._cosmosDBMongoMetricsProvider = new CosmosDBMongoMetricsProvider(this._functionId, this._databaseName, this._collectionName, loggerFactory);
            this._targetScalerDescriptor = new TargetScalerDescriptor(_functionId);
            this._maxWorkPerInstance = maxWorkPerInstance;
            this._maxWorkInstance = maxWorkInstance;
            this._logger = loggerFactory.CreateLogger<CosmosDBMongoTargetScaler>();
        }