IConsumePipe CreateBusReceiveEndpoint()
        {
            IConsumePipe busConsumePipe = CreateConsumePipe();

            var busEndpointConfigurator = new InMemoryReceiveEndpointConfigurator(_busQueueName, busConsumePipe);
            busEndpointConfigurator.Apply(this);
            return busConsumePipe;
        }
Esempio n. 2
0
        public void ReceiveEndpoint(string queueName, Action <IInMemoryReceiveEndpointConfigurator> configureEndpoint)
        {
            var endpointConfigurator = new InMemoryReceiveEndpointConfigurator(queueName);

            configureEndpoint(endpointConfigurator);

            AddBusFactorySpecification(endpointConfigurator);
        }
        IConsumePipe CreateBusReceiveEndpoint()
        {
            IConsumePipe busConsumePipe = CreateConsumePipe();

            var busEndpointConfigurator = new InMemoryReceiveEndpointConfigurator(_busQueueName, busConsumePipe);

            busEndpointConfigurator.Apply(this);
            return(busConsumePipe);
        }
Esempio n. 4
0
        public static IManagementEndpointConfigurator ManagementEndpoint(this IInMemoryBusFactoryConfigurator configurator,
                                                                         Action <IReceiveEndpointConfigurator> configure = null)
        {
            var queueName = configurator.GetTemporaryQueueName("manage-");

            var endpointConfigurator = new InMemoryReceiveEndpointConfigurator(queueName)
            {
                TransportConcurrencyLimit = 1
            };

            configure?.Invoke(endpointConfigurator);

            configurator.AddBusFactorySpecification(endpointConfigurator);

            var managementEndpointConfigurator = new ManagementEndpointConfigurator(endpointConfigurator);

            return(managementEndpointConfigurator);
        }
        public static IManagementEndpointConfigurator ManagementEndpoint(this IInMemoryBusFactoryConfigurator configurator,
            Action<IReceiveEndpointConfigurator> configure = null)
        {
            var queueName = configurator.GetTemporaryQueueName("manage-");

            var endpointConfigurator = new InMemoryReceiveEndpointConfigurator(queueName)
            {
                TransportConcurrencyLimit = 1
            };

            configure?.Invoke(endpointConfigurator);

            configurator.AddBusFactorySpecification(endpointConfigurator);

            var managementEndpointConfigurator = new ManagementEndpointConfigurator(endpointConfigurator);

            return managementEndpointConfigurator;
        }