private IQueue CreateQueue(IQueueFactory queueFactory, Uri queueUri) { var result = queueFactory.Create(queueUri); Guard.AgainstNull(result, string.Format(Resources.QueueFactoryCreatedNullQueue, queueFactory.GetType().FullName, queueUri)); return(result); }
public void RegisterQueueFactory(IQueueFactory queueFactory) { Guard.AgainstNull(queueFactory, nameof(queueFactory)); var factory = GetQueueFactory(queueFactory.Scheme); if (factory != null) { _queueFactories.Remove(factory); _log.Warning(string.Format(EsbResources.DuplicateQueueFactoryReplaced, queueFactory.Scheme, factory.GetType().FullName, queueFactory.GetType().FullName)); } _queueFactories.Add(queueFactory); if (Log.IsTraceEnabled) { _log.Trace(string.Format(EsbResources.QueueFactoryRegistered, queueFactory.Scheme, queueFactory.GetType().FullName)); } }
public void RegisterQueueFactory(IQueueFactory queueFactory) { Guard.AgainstNull(queueFactory, "queueFactory"); var factory = GetQueueFactory(queueFactory.Scheme); if (factory != null) { _queueFactories.Remove(factory); _log.Warning(string.Format(ESBResources.DuplicateQueueFactoryReplaced, queueFactory.Scheme, factory.GetType().FullName, queueFactory.GetType().FullName)); } _queueFactories.Add(queueFactory); }
public DuplicateQueueFactoryException(IQueueFactory factory) : base(string.Format(ESBResources.DuplicateQueueFactoryException, factory.Scheme, factory.GetType().FullName)) { }
public void RegisterQueueFactory(IQueueFactory queueFactory) { Guard.AgainstNull(queueFactory, "queueFactory"); var factory = GetQueueFactory(queueFactory.Scheme); if (factory != null) { QueueFactories().Remove(factory); _log.Warning(string.Format(ESBResources.DuplicateQueueFactoryReplaced, queueFactory.Scheme, factory.GetType().FullName, queueFactory.GetType().FullName)); } QueueFactories().Add(queueFactory); }
private IQueue CreateQueue(IQueueFactory queueFactory, Uri queueUri) { var result = queueFactory.Create(queueUri); Guard.AgainstNull(result, string.Format(ESBResources.QueueFactoryCreatedNullQueue, queueFactory.GetType().FullName, queueUri)); return result; }