本文整理汇总了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));
}
示例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);
}
}
示例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;
}
示例4: NimbusTopicMessageSender
public NimbusTopicMessageSender(IQueueManager queueManager, string topicPath)
{
_queueManager = queueManager;
_topicPath = topicPath;
_topicClient = new Lazy<TopicClient>(() => _queueManager.CreateTopicSender(_topicPath));
}
示例5: NimbusSubscriptionMessageReceiver
public NimbusSubscriptionMessageReceiver(IQueueManager queueManager, string topicPath, string subscriptionName, ConcurrentHandlerLimitSetting concurrentHandlerLimit)
{
_queueManager = queueManager;
_topicPath = topicPath;
_subscriptionName = subscriptionName;
_concurrentHandlerLimit = concurrentHandlerLimit;
}
示例6: LightningQueuesChannel
public LightningQueuesChannel(Uri address, string queueName, IQueueManager queueManager, IDelayedMessageCache<MessageId> delayedMessages)
{
_address = address;
_queueName = queueName;
_queueManager = queueManager;
_delayedMessages = delayedMessages;
}
示例7: NimbusTopicMessageSender
public NimbusTopicMessageSender(IQueueManager queueManager, string topicPath, ILogger logger)
: base()
{
_queueManager = queueManager;
_topicPath = topicPath;
_logger = logger;
}
示例8: ZombusQueueMessageSender
public ZombusQueueMessageSender(IQueueManager queueManager, string queuePath, IZombusLogger logger)
: base()
{
_queueManager = queueManager;
_queuePath = queuePath;
_logger = logger;
}
示例9: PerformanceMonitor
public PerformanceMonitor(IQueueManager queueManager)
{
_queueManager = queueManager;
AssertCountersExist();
AttachToEvents();
SyncWithCurrentQueueState();
}
示例10: MessagingFactory
public MessagingFactory(ConcurrentHandlerLimitSetting concurrentHandlerLimit, IZombusLogger logger, PrefetchCountSetting prefetchCount, IQueueManager queueManager)
{
_queueManager = queueManager;
_concurrentHandlerLimit = concurrentHandlerLimit;
_logger = logger;
_prefetchCount = prefetchCount;
}
示例11: ErrorHeaderViewModel
public ErrorHeaderViewModel(
IEventAggregator eventAggregator,
IContentDecoder<IList<HeaderInfo>> decoder,
IQueueManager queueManager)
: base(eventAggregator, decoder, queueManager)
{
DisplayName = "Errors";
}
示例12: WindowsServiceBusTopicMessageSender
public WindowsServiceBusTopicMessageSender(IBrokeredMessageFactory brokeredMessageFactory, ILogger logger, IQueueManager queueManager, IRetry retry, string topicPath)
{
_queueManager = queueManager;
_retry = retry;
_topicPath = topicPath;
_logger = logger;
_brokeredMessageFactory = brokeredMessageFactory;
}
示例13: AzureServiceBusQueueMessageSender
public AzureServiceBusQueueMessageSender(IBrokeredMessageFactory brokeredMessageFactory, ILogger logger, IQueueManager queueManager, IRetry retry, string queuePath)
{
_brokeredMessageFactory = brokeredMessageFactory;
_queueManager = queueManager;
_retry = retry;
_queuePath = queuePath;
_logger = logger;
}
示例14: OnReceiveMessageReceiver
public OnReceiveMessageReceiver(IQueueManager queueManager, string queuePath,
ConcurrentHandlerLimitSetting concurrentHandlerLimit, PrefetchCountSetting prefetchCount, IZombusLogger logger)
{
_queueManager = queueManager;
_queuePath = queuePath;
_concurrentHandlerLimit = concurrentHandlerLimit;
_prefetchCount = prefetchCount;
_logger = logger;
}
示例15: QueueMessageDispatcher
public QueueMessageDispatcher(ILogger logger, IQueueManager queueManager, IBrokeredMessageFactory brokeredMessageFactory,
IEndpointNamingPolicy endpointNamingPolicy, MaxConcurrentReceiverCallsSetting maxConcurrentReceiverCallsSetting)
{
_logger = logger;
_queueManager = queueManager;
_brokeredMessageFactory = brokeredMessageFactory;
_endpointNamingPolicy = endpointNamingPolicy;
_maxConcurrentReceiverCallsSetting = maxConcurrentReceiverCallsSetting;
}