/// <summary> /// Initializes a new instance of the <see cref="ServiceBusReceiver"/> class. /// </summary> /// /// <param name="connection">The <see cref="ServiceBusConnection" /> connection to use for communication with the Service Bus service.</param> /// <param name="entityPath"></param> /// <param name="options">A set of options to apply when configuring the consumer.</param> internal ServiceBusSessionReceiver( ServiceBusConnection connection, string entityPath, ServiceBusSessionReceiverOptions options) : base(connection, entityPath, true, options?.ToReceiverOptions(), options?.SessionId) { }
/// <summary> /// Initializes a new instance of the <see cref="ServiceBusReceiver"/> class. /// </summary> /// /// <param name="connection">The <see cref="ServiceBusConnection" /> connection to use for communication with the Service Bus service.</param> /// <param name="entityPath"></param> /// <param name="plugins">The set of plugins to apply to incoming messages.</param> /// <param name="options">A set of options to apply when configuring the consumer.</param> /// <param name="sessionId">An optional session Id to receive from.</param> internal ServiceBusSessionReceiver( ServiceBusConnection connection, string entityPath, IList <ServiceBusPlugin> plugins, ServiceBusSessionReceiverOptions options, string sessionId = default) : base(connection, entityPath, true, plugins, options?.ToReceiverOptions(), sessionId) { }
/// <summary> /// Initializes a new instance of the <see cref="ServiceBusReceiver"/> class. /// </summary> /// /// <param name="connection">The <see cref="ServiceBusConnection" /> connection to use for communication with the Service Bus service.</param> /// <param name="entityPath"></param> /// <param name="options">A set of options to apply when configuring the consumer.</param> /// <param name="cancellationToken">The cancellation token to use when opening the receiver link.</param> /// <param name="sessionId">An optional session Id to receive from.</param> /// <param name="isProcessor"></param> internal ServiceBusSessionReceiver( ServiceBusConnection connection, string entityPath, ServiceBusSessionReceiverOptions options, CancellationToken cancellationToken, string sessionId = default, bool isProcessor = false) : base(connection, entityPath, true, options?.ToReceiverOptions(), sessionId, isProcessor, cancellationToken) { _connection = connection; }
/// <summary> /// Initializes a new instance of the <see cref="ServiceBusReceiver"/> class. /// </summary> /// /// <param name="connection">The <see cref="ServiceBusConnection" /> connection to use for communication with the Service Bus service.</param> /// <param name="entityPath"></param> /// <param name="plugins">The set of plugins to apply to incoming messages.</param> /// <param name="options">A set of options to apply when configuring the consumer.</param> /// <param name="cancellationToken">The cancellation token to use when opening the receiver link.</param> /// <param name="sessionId">An optional session Id to receive from.</param> internal ServiceBusSessionReceiver( ServiceBusConnection connection, string entityPath, IList <ServiceBusPlugin> plugins, ServiceBusSessionReceiverOptions options, CancellationToken cancellationToken, string sessionId = default) : base(connection, entityPath, true, plugins, options?.ToReceiverOptions(), sessionId, cancellationToken) { _connection = connection; }