/// <summary> /// /// </summary> /// <returns></returns> public virtual async Task <ServiceBusReceiver> GetSessionReceiverAsync( string queueName, string sessionId = default, ServiceBusReceiverOptions options = default, CancellationToken cancellationToken = default) => await ServiceBusReceiver.CreateSessionReceiverAsync( queueName, Connection, sessionId, options, cancellationToken).ConfigureAwait(false);
/// <summary> /// /// </summary> /// <returns></returns> public virtual async Task <ServiceBusReceiver> GetSessionReceiverAsync( string topicName, string subscriptionName, ServiceBusReceiverOptions options = default, string sessionId = default, CancellationToken cancellationToken = default) => await ServiceBusReceiver.CreateSessionReceiverAsync( entityPath : EntityNameFormatter.FormatSubscriptionPath(topicName, subscriptionName), connection : Connection, sessionId : sessionId, options : options, cancellationToken : cancellationToken).ConfigureAwait(false);
/// <summary> /// /// </summary> /// <returns></returns> public virtual async Task <ServiceBusReceiver> GetSessionReceiverAsync( string queueName, ServiceBusReceiverOptions options = default, string sessionId = default, CancellationToken cancellationToken = default) { ValidateEntityName(queueName); return(await ServiceBusReceiver.CreateSessionReceiverAsync( entityPath : queueName, connection : Connection, sessionId : sessionId, options : options, cancellationToken : cancellationToken).ConfigureAwait(false)); }