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