public RpcClient(ITopologyLoader topologyLoader, TimeoutSettings defaultTimeout, RpcClientComponentOverrides componentOverrides = null) { topology = topologyLoader.Load(); this.defaultTimeout = defaultTimeout; var componentContainer = new RpcClientComponentContainer(this, componentOverrides ?? new RpcClientComponentOverrides()); proxyContainer = componentContainer.GetIServiceProxyContainer(); }
public RpcClientServer(ITopologyLoader topologyLoader, TimeoutSettings defaultTimeout, ISettingsLoader settingsLoader, RpcComponentOverrides componentOverrides = null) { topology = topologyLoader.Load(); this.defaultTimeout = defaultTimeout; settings = settingsLoader.LoadHostSettings(); var componentContainer = new RpcClientServerComponentContainer(this, componentOverrides ?? new RpcComponentOverrides()); logger = componentContainer.GetLogger(); serviceImplementationContainer = componentContainer.GetServiceImplementationContainer(); requestReceiver = componentContainer.GetRequestReceiverContainer().GetReceiver(settings.EndPoint.Protocol); serviceProxyContainer = componentContainer.GetIServiceProxyContainer(); }