public CosmosDBMongoTriggerAttribute()

in Microsoft.Azure.WebJobs.Extensions.AzureCosmosDb.Mongo/Trigger/CosmosDBMongoTriggerAttribute.cs [29:46]


        public CosmosDBMongoTriggerAttribute(string databaseName, string collectionName)
        {
            if (string.IsNullOrWhiteSpace(databaseName))
            {
                TriggerLevel = MonitorLevel.Cluster;
                return;
            }
            DatabaseName = databaseName;

            if (string.IsNullOrWhiteSpace(collectionName))
            {
                TriggerLevel = MonitorLevel.Database;
                return;
            }

            TriggerLevel = MonitorLevel.Collection;
            CollectionName = collectionName;
        }