public virtual MessagingWireup AddConnector(IChannelConnector channelConnector)
		{
			if (channelConnector == null)
				throw new ArgumentNullException("channelConnector");

			Log.Debug("Adding channel connector of type '{0}'.", channelConnector.GetType());

			if (channelConnector.GetType() != typeof(DependencyResolverConnector))
				channelConnector = new DependencyResolverConnector(channelConnector);

			this.connectors.Add(channelConnector);
			return this;
		}
Beispiel #2
0
        public virtual MessagingWireup AddConnector(IChannelConnector channelConnector)
        {
            if (channelConnector == null)
            {
                throw new ArgumentNullException("channelConnector");
            }

            Log.Debug("Adding channel connector of type '{0}'.", channelConnector.GetType());

            if (channelConnector.GetType() != typeof(PooledDispatchConnector))
            {
                channelConnector = new PooledDispatchConnector(channelConnector);
            }

            if (channelConnector.GetType() != typeof(DependencyResolverConnector))
            {
                channelConnector = new DependencyResolverConnector(channelConnector);
            }

            this.connectors.Add(channelConnector);
            return(this);
        }