Assembly: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)
Distributors govern the formatting and distribution of notifications. Each application must have at least one distributor. If an application has multiple distributors, each one must run on a different server.
The following examples show how to add a distributor to an application:
// Define distributor for application Distributor distributor = new Distributor(myApplication, "Distributor"); distributor.SystemName = notificationServicesHost; distributor.QuantumDuration = new TimeSpan(0, 0, 15); distributor.ThreadPoolSize = 2; myApplication.Distributors.Add(distributor);