public static IContainerFacilityExpression For(FubuTransportRegistry extension)
        {
            var registry = new FubuRegistry();

            extension.As <IFubuRegistryExtension>().Configure(registry);
            return(FubuApplication.For(registry));
        }
示例#2
0
        public static FubuTransportRegistry For(Action <FubuTransportRegistry> configure)
        {
            var registry = new FubuTransportRegistry();

            configure(registry);

            return(registry);
        }
示例#3
0
            public SubscriptionExpression(FubuTransportRegistry <T> parent, Expression <Func <T, Uri> > receiving)
            {
                _parent    = parent;
                _receiving = receiving;

                parent.Services(r => {
                    r.FillType(typeof(ISubscriptionRequirement), typeof(SubscriptionRequirements <T>));
                });
            }
示例#4
0
        public static BehaviorGraph BehaviorGraphFor(Action <FubuTransportRegistry> configure)
        {
            var registry          = new FubuRegistry();
            var transportRegistry = new FubuTransportRegistry();

            configure(transportRegistry);

            transportRegistry.As <IFubuRegistryExtension>()
            .Configure(registry);

            new FubuTransportationExtensions().Configure(registry);

            return(BehaviorGraph.BuildFrom(registry));
        }
        public static IContainerFacilityExpression For(Action <FubuTransportRegistry> configuration)
        {
            var extension = FubuTransportRegistry.For(configuration);

            return(For(extension));
        }
示例#6
0
 public ChannelExpression(FubuTransportRegistry <T> parent, Expression <Func <T, Uri> > expression)
 {
     _parent   = parent;
     _accessor = ReflectionHelper.GetAccessor(expression);
 }
示例#7
0
 public HandlersExpression(FubuTransportRegistry parent)
 {
     _parent = parent;
 }
 public HealthMonitoringExpression(FubuTransportRegistry parent)
 {
     _parent = parent;
 }
示例#9
0
 public void AddGlobal(IConfigurationAction action, FubuTransportRegistry registry)
 {
     _globalPolicies.Fill(action);
 }