Ejemplo n.º 1
0
        public HostReceiveEndpointHandle ConnectReceiveEndpoint(string queueName, Action <IServiceBusReceiveEndpointConfigurator> configure = null)
        {
            var configuration = _hostConfiguration.CreateReceiveEndpointConfiguration(queueName);

            configure?.Invoke(configuration.Configurator);

            BusConfigurationResult.CompileResults(configuration.Validate());

            configuration.Build();

            return(_receiveEndpoints.Start(queueName));
        }
Ejemplo n.º 2
0
        public HostReceiveEndpointHandle ConnectReceiveEndpoint(string queueName, Action <IInMemoryReceiveEndpointConfigurator> configure = null)
        {
            if (ReceiveEndpointFactory == null)
            {
                throw new ConfigurationException("The receive endpoint factory was not specified");
            }

            ReceiveEndpointFactory.CreateReceiveEndpoint(queueName, configure);

            return(_receiveEndpoints.Start(queueName));
        }