Exemple #1
0
        public T GetService <T>(string scope, TimeoutSettings timeoutSettings) where T : class
        {
            var serviceName = typeof(T).GetServiceName();

            if (topology.GetEndPoint(serviceName, scope) == settings.EndPoint)
            {
                var implementation = serviceImplementationContainer.GetImplementation(serviceName, scope).Implementation;
                // todo: notready timeouts
                return((T)implementation);
            }
            return(proxyContainer.GetProxy <T>(scope, timeoutSettings));
        }
Exemple #2
0
 public T GetService <T>(string scope, TimeoutSettings timeoutSettings) where T : class
 {
     return(proxyContainer.GetProxy <T>(scope, timeoutSettings));
 }