Beispiel #1
0
        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();
        }
Beispiel #2
0
 public RpcClientServerComponentContainer(IRpcClientServer clientServer, RpcComponentOverrides overrides)
     : base(clientServer, overrides)
 {
     this.clientServer = clientServer;
     this.overrides    = overrides;
 }
 public RpcClientServerComponentContainer(IRpcClientServer clientServer, RpcComponentOverrides overrides)
     : base(clientServer, overrides)
 {
     this.clientServer = clientServer;
     this.overrides = overrides;
 }