Exemplo n.º 1
0
        public static WcfService GetWcfService(Type serviceType, string loadBalancePath)
        {
            if (_localService != null)
            {
                return(_localService.GetWcfService(GetTypeName(serviceType), Environment.MachineName, loadBalancePath));
            }

            using (var channel = DistributedFramework.Instance.CreateWcfChannel <IWcfConfigurationService>())
            {
                return(channel.Channel.GetWcfService(GetTypeName(serviceType), Environment.MachineName, loadBalancePath));
            }

            return(null);
        }