/// <summary> /// c'tor taking settings to configure the endpoint with /// </summary> public TransportFactoryImpl(ReceiverSettings receiverSettings, SenderSettings senderSettings) { _addresses = new ReaderWriterLockedDictionary <Uri, AzureServiceBusEndpointAddress>(); _connCache = new ReaderWriterLockedDictionary <Uri, ConnectionHandler <ConnectionImpl> >(); _formatter = new AzureMessageNameFormatter(); _receiverSettings = receiverSettings; _senderSettings = senderSettings; _logger.Debug("created new transport factory"); }
/// <summary> /// c'tor taking settings to configure the endpoint with /// </summary> public TransportFactoryImpl(ReceiverSettings receiverSettings, SenderSettings senderSettings) { _addresses = new ReaderWriterLockedDictionary<Uri, IAzureServiceBusEndpointAddress>(); _connCache = new ReaderWriterLockedDictionary<Uri, ConnectionHandler<AzureServiceBusConnection>>(); _formatter = new AzureServiceBusMessageNameFormatter(); _receiverSettings = receiverSettings; _senderSettings = senderSettings; _logger.Debug("created new transport factory"); }
public EndpointFactory(IObjectBuilder objectBuilder, Type defaultSerializer, IEnumerable<Type> transportTypes, IEnumerable<KeyValuePair<Uri, Action<IEndpointConfigurator>>> endpointConfigurators) { _transportConfigurators = new ReaderWriterLockedDictionary<Type, Func<Uri, Action<IEndpointConfigurator>, IEndpoint>>(); _endpointConfigurators = new ReaderWriterLockedDictionary<Uri, Action<IEndpointConfigurator>>(endpointConfigurators); _endpoints = new ReaderWriterLockedDictionary<Uri, IEndpoint>(); _defaultSerializer = defaultSerializer; _objectBuilder = objectBuilder; ConnectTransportConfigurators(transportTypes); }
public EndpointFactory(IObjectBuilder objectBuilder, Type defaultSerializer, IEnumerable <Type> transportTypes, IEnumerable <KeyValuePair <Uri, Action <IEndpointConfigurator> > > endpointConfigurators) { _transportConfigurators = new ReaderWriterLockedDictionary <Type, Func <Uri, Action <IEndpointConfigurator>, IEndpoint> >(); _endpointConfigurators = new ReaderWriterLockedDictionary <Uri, Action <IEndpointConfigurator> >(endpointConfigurators); _endpoints = new ReaderWriterLockedDictionary <Uri, IEndpoint>(); _defaultSerializer = defaultSerializer; _objectBuilder = objectBuilder; ConnectTransportConfigurators(transportTypes); }
static DotNotXmlMessageSerializer() { _serializers = new ReaderWriterLockedDictionary <Type, XmlSerializer>(); _deserializers = new ReaderWriterLockedDictionary <Type, XmlSerializer> { { typeof(XmlReceiveMessageEnvelope), new XmlSerializer(typeof(XmlReceiveMessageEnvelope)) }, }; _namespaces = new XmlSerializerNamespaces(); _namespaces.Add("", ""); _attributes = new XmlAttributes(); _attributes.XmlRoot = new XmlRootAttribute("Message"); }
protected virtual void Dispose(bool disposing) { if (_disposed) { return; } if (disposing) { _endpointConfigurators.Dispose(); _endpointConfigurators = null; _transportTypes.Dispose(); _transportTypes = null; } _disposed = true; }
protected virtual void Dispose(bool disposing) { if (_disposed) { return; } if (disposing) { Clear(); _endpoints.Dispose(); _endpoints = null; _endpointFactory.Dispose(); } _disposed = true; }
protected virtual void Dispose(bool disposing) { if (_disposed) { return; } if (disposing) { _endpointConfigurators.Dispose(); _endpointConfigurators = null; _transportConfigurators.Dispose(); _transportConfigurators = null; _endpoints.Values.Each(endpoint => endpoint.Dispose()); _endpoints.Dispose(); _endpoints = null; } _disposed = true; }
public RabbitMqTransportFactory(IDictionary<Uri, ConnectionFactoryBuilder> connectionFactoryBuilders) { _connectionCache = new ReaderWriterLockedDictionary<Uri, ConnectionHandler<RabbitMqConnection>>(); _connectionFactoryBuilders = connectionFactoryBuilders; _messageNameFormatter = new RabbitMqMessageNameFormatter(); }
public EndpointCache(IEndpointFactory endpointFactory) { _endpointFactory = endpointFactory; _endpoints = new ReaderWriterLockedDictionary <Uri, IEndpoint>(); }
public BatchSubscriber() { _instances = new ReaderWriterLockedDictionary <Type, Func <BatchSubscriber, ISubscriberContext, object, UnsubscribeAction> >(); _components = new ReaderWriterLockedDictionary <Type, Func <BatchSubscriber, ISubscriberContext, UnsubscribeAction> >(); }
protected virtual void Dispose(bool disposing) { if (_disposed) return; if (disposing) { _endpointConfigurators.Dispose(); _endpointConfigurators = null; _transportConfigurators.Dispose(); _transportConfigurators = null; _endpoints.Values.Each(endpoint => endpoint.Dispose()); _endpoints.Dispose(); _endpoints = null; } _disposed = true; }
public RabbitMqTransportFactory() { _connectionCache = new ReaderWriterLockedDictionary <Uri, ConnectionHandler <RabbitMqConnection> >(); _connectionFactoryBuilders = new Dictionary <Uri, ConnectionFactoryBuilder>(); }
public BusSubscriptionCache(SubscriptionObserver observer) { _observer = observer; _subscriptions = new ReaderWriterLockedDictionary<string, BusSubscription>(); }
private EndpointFactoryConfigurator() { _transportTypes = new ReaderWriterLockedObject <HashSet <Type> >(new HashSet <Type>()); _endpointConfigurators = new ReaderWriterLockedDictionary <Uri, Action <IEndpointConfigurator> >(); }
public RabbitMqTransportFactory() { _connectionCache = new ReaderWriterLockedDictionary<Uri, ConnectionHandler<RabbitMqConnection>>(); _connectionFactoryBuilders = new Dictionary<Uri, ConnectionFactoryBuilder>(); }
public RabbitMqTransportFactory(IDictionary <Uri, ConnectionFactoryBuilder> connectionFactoryBuilders) { _connectionCache = new ReaderWriterLockedDictionary <Uri, ConnectionHandler <RabbitMqConnection> >(); _connectionFactoryBuilders = connectionFactoryBuilders; _messageNameFormatter = new RabbitMqMessageNameFormatter(); }
protected virtual void Dispose(bool disposing) { if (_disposed) return; if (disposing) { Clear(); _endpoints.Dispose(); _endpoints = null; _endpointFactory.Dispose(); } _disposed = true; }
static StateMachineUserType() { _getStateMethods = new ReaderWriterLockedDictionary<Type, Func<string, State>>(); }
public RabbitMqTransportFactory() { _connectionCache = new ReaderWriterLockedDictionary<Uri, IConnection>(); }
protected ConsumesSubscriberBase() { _components = new ReaderWriterLockedDictionary <Type, Func <TInterceptor, ISubscriberContext, UnsubscribeAction> >(); _instances = new ReaderWriterLockedDictionary <Type, Func <TInterceptor, ISubscriberContext, object, UnsubscribeAction> >(); }
public ConsumesForSubscriber() { _instances = new ReaderWriterLockedDictionary <Type, Func <ConsumesForSubscriber, ISubscriberContext, object, UnsubscribeAction> >(); }
public EndpointCache(IEndpointFactory endpointFactory) { _endpointFactory = endpointFactory; _endpoints = new ReaderWriterLockedDictionary<Uri, IEndpoint>(); }
/// <summary> /// Initializes a new instance of the <see cref="StompTransportFactory" /> class. /// </summary> public StompTransportFactory() { _connectionCache = new ReaderWriterLockedDictionary <Uri, ConnectionHandler <StompConnection> >(); }
static StateMachineUserType() { _getStateMethods = new ReaderWriterLockedDictionary <Type, Func <string, State> >(); }
/// <summary> /// Initializes a new instance of the <see cref="StompTransportFactory" /> class. /// </summary> public StompTransportFactory() { _connectionCache = new ReaderWriterLockedDictionary<Uri, ConnectionHandler<StompConnection>>(); }