internal ServiceBusSessionProcessor( ServiceBusConnection connection, string entityPath, IList <ServiceBusPlugin> plugins, ServiceBusSessionProcessorOptions options) { _innerProcessor = new ServiceBusProcessor( connection, entityPath, true, plugins, options.ToProcessorOptions(), options.SessionIds, options.MaxConcurrentSessions, options.MaxConcurrentCallsPerSession); }
internal ServiceBusSessionProcessor( ServiceBusConnection connection, string entityPath, ServiceBusSessionProcessorOptions options) { options ??= new ServiceBusSessionProcessorOptions(); InnerProcessor = new ServiceBusProcessor( connection, entityPath, true, options.ToProcessorOptions(), options.SessionIds.ToArray(), options.MaxConcurrentSessions, options.MaxConcurrentCallsPerSession, this); }
public SessionReceiverManager( ServiceBusProcessor processor, string sessionId, SemaphoreSlim concurrentAcceptSessionsSemaphore, EntityScopeFactory scopeFactory, IList <ServiceBusPlugin> plugins, int maxCallsPerSession, bool keepOpenOnReceiveTimeout) : base(processor, scopeFactory, plugins) { _concurrentAcceptSessionsSemaphore = concurrentAcceptSessionsSemaphore; _maxCallsPerSession = maxCallsPerSession; _sessionReceiverOptions = new ServiceBusSessionReceiverOptions { ReceiveMode = processor.Options.ReceiveMode, PrefetchCount = processor.Options.PrefetchCount, }; _sessionId = sessionId; _keepOpenOnReceiveTimeout = keepOpenOnReceiveTimeout; }
public ReceiverManager( ServiceBusProcessor processor, EntityScopeFactory scopeFactory, IList <ServiceBusPlugin> plugins) { Processor = processor; ProcessorOptions = processor.Options; _receiverOptions = new ServiceBusReceiverOptions { ReceiveMode = ProcessorOptions.ReceiveMode, PrefetchCount = ProcessorOptions.PrefetchCount, }; _maxReceiveWaitTime = ProcessorOptions.MaxReceiveWaitTime; _plugins = plugins; Receiver = new ServiceBusReceiver( connection: Processor.Connection, entityPath: Processor.EntityPath, isSessionEntity: false, plugins: _plugins, options: _receiverOptions); _scopeFactory = scopeFactory; }
public ReceiverManager( ServiceBusProcessor processor, EntityScopeFactory scopeFactory) { Processor = processor; ProcessorOptions = processor.Options; _receiverOptions = new ServiceBusReceiverOptions { ReceiveMode = ProcessorOptions.ReceiveMode, PrefetchCount = ProcessorOptions.PrefetchCount, // Pass None for subqueue since the subqueue has already // been taken into account when computing the EntityPath of the processor. SubQueue = SubQueue.None }; _maxReceiveWaitTime = ProcessorOptions.MaxReceiveWaitTime; Receiver = new ServiceBusReceiver( connection: Processor.Connection, entityPath: Processor.EntityPath, isSessionEntity: false, isProcessor: true, options: _receiverOptions); _scopeFactory = scopeFactory; }