当前位置: 首页>>代码示例>>C#>>正文


C# IQueueManager类代码示例

本文整理汇总了C#中IQueueManager的典型用法代码示例。如果您正苦于以下问题:C# IQueueManager类的具体用法?C# IQueueManager怎么用?C# IQueueManager使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


IQueueManager类属于命名空间,在下文中一共展示了IQueueManager类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: NimbusQueueMessageSender

        public NimbusQueueMessageSender(IQueueManager queueManager, string queuePath)
        {
            _queueManager = queueManager;
            _queuePath = queuePath;

            _queueClient = new Lazy<MessageSender>(() => _queueManager.CreateMessageSender(_queuePath));
        }
开发者ID:shingi,项目名称:Nimbus,代码行数:7,代码来源:NimbusQueueMessageSender.cs

示例2: Execute

 /// <summary>
 /// Executes the specified queue manager.
 /// </summary>
 /// <param name="queueManager">The queue manager.</param>
 /// <returns></returns>
 public CommandResult Execute(IQueueManager queueManager)
 {
     try
     {
         if (this._retrySkipCount == 0)
         {
             this._attemptCount++;
             this.InternalExecute();
             if (this._attemptCount > 1)
             {
                 queueManager.LogEvent(EventLogEntryType.Information, 0x40004405L,Environment.MachineName);
             }
             return CommandResult.Success;
         }
         this._retrySkipCount--;
         return CommandResult.Retry;
     }
     catch (Exception exception)
     {
         var sqlException = exception as SqlException;
         var asyncServiceException = exception as AsyncServiceException;
         if ((sqlException == null) && (asyncServiceException == null))
         {
             throw;
         }
         if (queueManager.ShuttingDown)
         {
             queueManager.LogEvent(EventLogEntryType.Error, 0xc0004409L, Environment.MachineName, exception.ToString() );
             return CommandResult.Failure;
         }
         return CalculateRetryOrFailure(queueManager, exception);
     }
 }
开发者ID:udbeeq5566,项目名称:ESB,代码行数:38,代码来源:QueuedDatabaseCommand.cs

示例3: MessageQueue

        /// <summary>
        /// Initializes a new instance of the <see cref="MessageQueue"/> class.
        /// </summary>
        /// <param name="manager"> The queue manager for underlying queues.</param>
        /// <exception cref="System.ArgumentNullException">The manager argument can not be null.</exception>
        public MessageQueue(IQueueManager manager)
        {
            if (manager == null)
                throw new ArgumentNullException("manager");

            _manager = manager;
        }
开发者ID:modulexcite,项目名称:MongoDB.Messaging,代码行数:12,代码来源:MessageQueue.cs

示例4: NimbusTopicMessageSender

        public NimbusTopicMessageSender(IQueueManager queueManager, string topicPath)
        {
            _queueManager = queueManager;
            _topicPath = topicPath;

            _topicClient = new Lazy<TopicClient>(() => _queueManager.CreateTopicSender(_topicPath));
        }
开发者ID:shingi,项目名称:Nimbus,代码行数:7,代码来源:NimbusTopicMessageSender.cs

示例5: NimbusSubscriptionMessageReceiver

 public NimbusSubscriptionMessageReceiver(IQueueManager queueManager, string topicPath, string subscriptionName, ConcurrentHandlerLimitSetting concurrentHandlerLimit)
 {
     _queueManager = queueManager;
     _topicPath = topicPath;
     _subscriptionName = subscriptionName;
     _concurrentHandlerLimit = concurrentHandlerLimit;
 }
开发者ID:shingi,项目名称:Nimbus,代码行数:7,代码来源:NimbusSubscriptionMessageReceiver.cs

示例6: LightningQueuesChannel

 public LightningQueuesChannel(Uri address, string queueName, IQueueManager queueManager, IDelayedMessageCache<MessageId> delayedMessages)
 {
     _address = address;
     _queueName = queueName;
     _queueManager = queueManager;
     _delayedMessages = delayedMessages;
 }
开发者ID:joemcbride,项目名称:fubumvc,代码行数:7,代码来源:LightningQueuesChannel.cs

示例7: NimbusTopicMessageSender

 public NimbusTopicMessageSender(IQueueManager queueManager, string topicPath, ILogger logger)
     : base()
 {
     _queueManager = queueManager;
     _topicPath = topicPath;
     _logger = logger;
 }
开发者ID:waheedsayed,项目名称:Nimbus,代码行数:7,代码来源:NimbusTopicMessageSender.cs

示例8: ZombusQueueMessageSender

 public ZombusQueueMessageSender(IQueueManager queueManager, string queuePath, IZombusLogger logger)
     : base()
 {
     _queueManager = queueManager;
     _queuePath = queuePath;
     _logger = logger;
 }
开发者ID:Royal-Jay,项目名称:Zombus,代码行数:7,代码来源:ZombusQueueMessageSender.cs

示例9: PerformanceMonitor

 public PerformanceMonitor(IQueueManager queueManager)
 {
     _queueManager = queueManager;
     AssertCountersExist();
     AttachToEvents();
     SyncWithCurrentQueueState();
 }
开发者ID:BclEx,项目名称:rhino-esb,代码行数:7,代码来源:PerformanceMonitor.cs

示例10: MessagingFactory

 public MessagingFactory(ConcurrentHandlerLimitSetting concurrentHandlerLimit, IZombusLogger logger, PrefetchCountSetting prefetchCount, IQueueManager queueManager)
 {
     _queueManager = queueManager;
     _concurrentHandlerLimit = concurrentHandlerLimit;
     _logger = logger;
     _prefetchCount = prefetchCount;
 }
开发者ID:Royal-Jay,项目名称:Zombus,代码行数:7,代码来源:MessagingFactory.cs

示例11: ErrorHeaderViewModel

 public ErrorHeaderViewModel(
     IEventAggregator eventAggregator, 
     IContentDecoder<IList<HeaderInfo>> decoder, 
     IQueueManager queueManager) 
     : base(eventAggregator, decoder, queueManager)
 {
     DisplayName = "Errors";
 }
开发者ID:roycornelissen,项目名称:ServiceInsight,代码行数:8,代码来源:ErrorHeaderViewModel.cs

示例12: WindowsServiceBusTopicMessageSender

 public WindowsServiceBusTopicMessageSender(IBrokeredMessageFactory brokeredMessageFactory, ILogger logger, IQueueManager queueManager, IRetry retry, string topicPath)
 {
     _queueManager = queueManager;
     _retry = retry;
     _topicPath = topicPath;
     _logger = logger;
     _brokeredMessageFactory = brokeredMessageFactory;
 }
开发者ID:NimbusAPI,项目名称:Nimbus,代码行数:8,代码来源:WindowsServiceBusTopicMessageSender.cs

示例13: AzureServiceBusQueueMessageSender

 public AzureServiceBusQueueMessageSender(IBrokeredMessageFactory brokeredMessageFactory, ILogger logger, IQueueManager queueManager, IRetry retry, string queuePath)
 {
     _brokeredMessageFactory = brokeredMessageFactory;
     _queueManager = queueManager;
     _retry = retry;
     _queuePath = queuePath;
     _logger = logger;
 }
开发者ID:NimbusAPI,项目名称:Nimbus,代码行数:8,代码来源:AzureServiceBusQueueMessageSender.cs

示例14: OnReceiveMessageReceiver

 public OnReceiveMessageReceiver(IQueueManager queueManager, string queuePath,
     ConcurrentHandlerLimitSetting concurrentHandlerLimit, PrefetchCountSetting prefetchCount, IZombusLogger logger)
 {
     _queueManager = queueManager;
     _queuePath = queuePath;
     _concurrentHandlerLimit = concurrentHandlerLimit;
     _prefetchCount = prefetchCount;
     _logger = logger;
 }
开发者ID:MikeLarned,项目名称:Zombus,代码行数:9,代码来源:OnReceiveMessageReceiver.cs

示例15: QueueMessageDispatcher

 public QueueMessageDispatcher(ILogger logger, IQueueManager queueManager, IBrokeredMessageFactory brokeredMessageFactory,
     IEndpointNamingPolicy endpointNamingPolicy, MaxConcurrentReceiverCallsSetting maxConcurrentReceiverCallsSetting)
 {
     _logger = logger;
     _queueManager = queueManager;
     _brokeredMessageFactory = brokeredMessageFactory;
     _endpointNamingPolicy = endpointNamingPolicy;
     _maxConcurrentReceiverCallsSetting = maxConcurrentReceiverCallsSetting;
 }
开发者ID:Garyljackson,项目名称:SimpleBus,代码行数:9,代码来源:QueueMessageDispatcher.cs


注:本文中的IQueueManager类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。