Ejemplo n.º 1
0
 protected override void Load(ContainerBuilder builder)
 {
     builder.RegisterAssemblyTypes(ThisAssembly).Where(x => !ReflectionHelper.IsSystemType(x))
     .AsImplementedInterfaces().Where(x => !(x is IRemoteMessageSenderDelegate))
     .InstancePerLifetimeScope();
     RemoteProxyGenerator.CreateRemoteProxyAndRegisterInIocContainer(builder);
 }
Ejemplo n.º 2
0
 public OxygenHostService(ILifetimeScope lifetimeScope)
 {
     OxygenIocContainer.BuilderIocContainer(lifetimeScope);
     RemoteProxyGenerator.InitRemoteMessageSenderDelegate();//初始化消息发送代理
 }