示例#1
0
 public SessionReceiverManager(
     ServiceBusSessionProcessor sessionProcessor,
     string sessionId,
     SemaphoreSlim concurrentAcceptSessionsSemaphore,
     EntityScopeFactory scopeFactory,
     bool keepOpenOnReceiveTimeout)
     : base(sessionProcessor.InnerProcessor, scopeFactory)
 {
     _concurrentAcceptSessionsSemaphore = concurrentAcceptSessionsSemaphore;
     _sessionReceiverOptions            = new ServiceBusSessionReceiverOptions
     {
         ReceiveMode   = sessionProcessor.InnerProcessor.Options.ReceiveMode,
         PrefetchCount = sessionProcessor.InnerProcessor.Options.PrefetchCount,
     };
     _sessionId = sessionId;
     _keepOpenOnReceiveTimeout = keepOpenOnReceiveTimeout;
     _sessionProcessor         = sessionProcessor;
 }