Method WithNotifications
WithNotifications(Severity?, Category[], Classification[])
Override configuration for which INotifications should be emitted for the lifetime of the
driver.
Unspecified configuration will be provided by configuration in the server.
Disabling categories or
severities allows the server to skip analysis for those, which can speed up query execution.
public ConfigBuilder WithNotifications(Severity? minimumSeverity, Category[] disabledCategories = null, Classification[] disabledClassifications = null)
Parameters
minimumSeveritySeverity?Optional parameter to override the minimum severity of notifications emitted.
By leaving null, the value will inherit configuration from the server.disabledCategoriesCategory[]Optional parameter to override the category of notifications emitted.
By passing an empty collection, all categories are enabled.
By leaving null, the value will inherit configuration from the server.disabledClassificationsClassification[]Optional parameter to override the classification of notifications emitted.
By passing an empty collection, all classifications are enabled.
By leaving null, the value will inherit configuration from the server.
Returns
- ConfigBuilder
A ConfigBuilder instance for further configuration options.
Remarks
Cannot be used with: WithNotificationsDisabled().
Exceptions
- ArgumentException
Thrown when all parameters are null.
- See Also