コード例 #1
0
        public void ReceiveEndpoint(string queueName, Action <TEndpointConfigurator> configureEndpoint)
        {
            BusConfigurator.ReceiveEndpoint(queueName, endpointConfigurator =>
            {
                if (InstanceEndpointConfigurator != null)
                {
                    endpointConfigurator.AddDependency(InstanceEndpointConfigurator);
                }

                configureEndpoint?.Invoke(endpointConfigurator);
            });
        }
コード例 #2
0
        public void ReceiveEndpoint(IEndpointDefinition definition, IEndpointNameFormatter endpointNameFormatter,
                                    Action <TEndpointConfigurator> configureEndpoint)
        {
            endpointNameFormatter ??= EndpointNameFormatter;

            BusConfigurator.ReceiveEndpoint(definition, endpointNameFormatter, endpointConfigurator =>
            {
                if (InstanceEndpointConfigurator != null)
                {
                    endpointConfigurator.AddDependency(InstanceEndpointConfigurator);
                }

                configureEndpoint?.Invoke(endpointConfigurator);
            });
        }