public static IEndpoint New(Action<IEndpointConfigurator> action)
        {
            var configurator = new RabbitMqEndpointConfigurator();

            action(configurator);

            return configurator.Create();
        }
예제 #2
0
        public static IEndpoint New(Action <IEndpointConfigurator> action)
        {
            var configurator = new RabbitMqEndpointConfigurator();

            action(configurator);

            return(configurator.Create());
        }
예제 #3
0
        public static IEndpoint ConfigureEndpoint(Uri uri, Action <IEndpointConfigurator> configurator)
        {
            if (uri.Scheme.ToLowerInvariant() == "rabbitmq")
            {
                IEndpoint endpoint = RabbitMqEndpointConfigurator.New(x =>
                {
                    x.SetUri(uri);

                    configurator(x);
                });

                return(endpoint);
            }

            return(null);
        }