public XiConfigurator(IAccessChannelController boot) { _boot = boot; }
/* public static IXiConfigurator UseXi(this IAccessChannelController boot) * { * boot.Container.RegisterType<IXiServerProvider, XiServerProvider>("XiServerProvider"); * boot.Container.RegisterType<IXiServerProvider, SimXiServerProvider>("SimXiServerProvider"); * boot.Container.RegisterTypeWithLifetimeManager<IXiServerConfigProvider, XiServerConfigProvider>(); * * boot.Container.RegisterType<IAccessChannelFactory, XiAccessChannelFactory>("AccessChannelFactory"); * boot.Container.RegisterType<IAccessChannelFactory, SimAccessChannelFactory>("SimAccessChannelFactory"); * * boot.Container.RegisterType<ICommunicationState, CommunicationState>(); * * return new XiConfigurator(boot); * }*/ public static IAccessChannelController Config(this IAccessChannelController boot, Action <XiServerConfig> configAction) { new XiConfigurator(boot).Config(configAction); return(boot); }