public IServiceProxyContainer GetIServiceProxyContainer()
 {
     return serviceProxyContainer ?? (serviceProxyContainer =
                                      overrides.ServiceProxyContainer != null
                                          ? overrides.ServiceProxyContainer(this)
                                          : new ServiceProxyContainer(GetOutgoingMethodCallProcessor(), GetServiceProxyClassFactory()));
 }
Ejemplo n.º 2
0
 public IServiceProxyContainer GetIServiceProxyContainer()
 {
     return(serviceProxyContainer ?? (serviceProxyContainer =
                                          overrides.ServiceProxyContainer != null
                                          ? overrides.ServiceProxyContainer(this)
                                          : new ServiceProxyContainer(GetOutgoingMethodCallProcessor(), GetServiceProxyClassFactory())));
 }
Ejemplo n.º 3
0
        public RpcClient(ITopologyLoader topologyLoader, TimeoutSettings defaultTimeout, RpcClientComponentOverrides componentOverrides = null)
        {
            topology            = topologyLoader.Load();
            this.defaultTimeout = defaultTimeout;
            var componentContainer = new RpcClientComponentContainer(this, componentOverrides ?? new RpcClientComponentOverrides());

            serviceProxyContainer = componentContainer.GetIServiceProxyContainer();
        }
Ejemplo n.º 4
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();
        }