<PackageReference Include="System.Data.SqlClient" Version="4.8.4" />

SqlNotificationRequest

public sealed class SqlNotificationRequest
Represents a request for notification for a given command.
public string Options { get; set; }

Gets or sets the SQL Server Service Broker service name where notification messages are posted.

public int Timeout { get; set; }

Gets or sets a value that specifies how long SQL Server waits for a change to occur before the operation times out.

public string UserData { get; set; }

Gets or sets an application-specific identifier for this notification.

Creates a new instance of the SqlNotificationRequest class with default values.

public SqlNotificationRequest(string userData, string options, int timeout)

Creates a new instance of the SqlNotificationRequest class with a user-defined string that identifies a particular notification request, the name of a predefined SQL Server 2005 Service Broker service name, and the time-out period, measured in seconds.