• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# IQueueManager类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


示例16: TestInitialize

 public void TestInitialize()
 {
     IList<string> machines = new List<string> { Environment.MachineName, "AnotherMachine" };
     QueueManager = Substitute.For<IQueueManager>();
     Explorer = Substitute.For<IQueueExplorerViewModel>();
     Network = Substitute.For<INetworkOperations>();
     Model = new Desktop.Shell.QueueCreationViewModel(QueueManager, Explorer, Network);
     Network.GetMachines().Returns(Task.FromResult(machines));
 }
开发者ID:nanohex,项目名称:ServiceInsight,代码行数:9,代码来源:QueueCreationViewModel.cs


示例17: MainWindowViewModel

        public MainWindowViewModel(
            IQueueManager queueManager,
            IMessageFactory factory)
        {
            this.queueManager = queueManager;
            this.messageFactory = factory;

            this.PoppedMessage = string.Empty;
        }
开发者ID:xelplogoog,项目名称:KLTestTask,代码行数:9,代码来源:MainWindowViewModel.cs


示例18: MessageService

        /// <summary>
        /// Initializes a new instance of the <see cref="MessageService"/> class.
        /// </summary>
        /// <param name="manager">The queue manager.</param>
        /// <exception cref="ArgumentNullException"><paramref name="manager"/> is <see langword="null" />.</exception>
        public MessageService(IQueueManager manager)
        {
            if (manager == null)
                throw new ArgumentNullException("manager");

            _processors = new Lazy<IList<IMessageProcessor>>(CreateProcesses);
            _manager = manager;
            _activeProcesses = 0;

        }
开发者ID:modulexcite,项目名称:MongoDB.Messaging,代码行数:15,代码来源:MessageService.cs


示例19: ExplorerViewModel

 public ExplorerViewModel(
     IQueueManager queueManager,
     IEventAggregator eventAggregator,
     IWindowManagerEx windowManager)
 {
     _queueManager = queueManager;
     _eventAggregator = eventAggregator;
     _windowManager = windowManager;
     Items = new BindableCollection<ExplorerItem>();
 }
开发者ID:4lx,项目名称:Profiler,代码行数:10,代码来源:ExplorerViewModel.cs


示例20: MusicService

	    public MusicService(ILogger logger,
			IMusicProviderFactory musicProviderFactory,
			IAutoPlay autoplayer,
            IDataService<QueuedTrack> queuedTrackDataService,
			IDataService<User> adminUserDataService,
			ISearchSuggestionService searchSuggestionService,
			IRickRollService rickRollService,
			IBroadcastService broadcastService,
			ISoundBoardService soundBoardService,
            ISkipHelper skipHelper,
            IVolume volume,
            IQueueManager queueManager,
            IAlreadyQueuedHelper alreadyQueuedHelper,
            IMusicPlayer musicPlayer,
            ICallbackClient callbackClient,
            IUserService userService,
			IVetoHelper vetoHelper,
            IQueueRuleHelper queueRuleHelper,
            ISettings settings,
            ISearchRuleHelper searchRuleHelper
            )
		{
	        this.vetoHelper = vetoHelper;
	        this.callbackClient = callbackClient;
	        this.alreadyQueuedHelper = alreadyQueuedHelper;
	        this.queueManager = queueManager;
	        this.broadcastService = broadcastService;
			this.rickRollService = rickRollService;
			this.logger = logger;
			this.musicProviderFactory = musicProviderFactory;
			this.autoplayer = autoplayer;
			this.queuedTrackDataService = queuedTrackDataService;
			this.adminUserDataService = adminUserDataService;
			this.searchSuggestionService = searchSuggestionService;
			this.soundBoardService = soundBoardService;
			this.skipHelper = skipHelper;
            this.volume = volume;
            this.musicPlayer = musicPlayer;
	        this.callbackClient = callbackClient;
            this.userService = userService;            
            this.queueRuleHelper = queueRuleHelper;
	        this.settings = settings;

	        this.searchRuleHelper = searchRuleHelper;
	        foreach (var provider in musicProviderFactory.GetAllMusicProviders())
			{
				provider.TrackEnded += musicProvider_TrackEnded;        
			}

			if (settings.AutoStart)
			{
			    PlayNextTrack();
			}
		}
开发者ID:Jc54,项目名称:PlayMe,代码行数:54,代码来源:MusicService.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# IQueuedEmailService类代码示例发布时间:2022-05-24
下一篇:
C# IQueue类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap