Exemplo n.º 1
0
        protected virtual IMessagingHost StartHost()
        {
            this.AuditConnection();

            var host = new DefaultMessagingHost(this.connectors, new DefaultChannelGroupFactory().Build);

            host.Initialize();
            return(host);
        }
        protected static void RebuildHost()
        {
            if (channelFactory == null && mockFactory != null)
            {
                channelFactory = (c, cfg) => mockFactory.Object.Build(c, cfg);
            }

            host = new DefaultMessagingHost(Connectors, channelFactory);
        }
Exemplo n.º 3
0
		protected virtual IMessagingHost StartHost()
		{
			var host = new DefaultMessagingHost(this.connectors.ToArray(), new DefaultChannelGroupFactory().Build);
			host.Initialize();
			return host;
		}
		protected static void RebuildHost()
		{
			if (channelFactory == null && mockFactory != null)
				channelFactory = (c, cfg) => mockFactory.Object.Build(c, cfg);

			host = new DefaultMessagingHost(Connectors, channelFactory);
		}