/// <summary> /// Returns the WCF client environment instance for a <paramref name="serviceName">service name</paramref>. /// </summary> /// <param name="serviceName">Name of the service to search.</param> /// <returns>Returns the client environment instance for a <paramref name="serviceName">service name</paramref>.</returns> public static ClientEnvironment GetInstanceWcf(string serviceName) { if (!instancesWcf.ContainsKey(serviceName)) { ClientEnvironment environment = new ClientEnvironmentWcf(serviceName); environment.Start(); instancesWcf.Add(serviceName, environment); } return(instancesWcf[serviceName]); }
/// <summary> /// Returns the WCF client environment instance for a <paramref name="serviceName">service name</paramref>. /// </summary> /// <param name="serviceName">Name of the service to search.</param> /// <returns>Returns the client environment instance for a <paramref name="serviceName">service name</paramref>.</returns> public static ClientEnvironment GetInstanceWcf(string serviceName) { if (!instancesWcf.ContainsKey(serviceName)) { ClientEnvironment environment = new ClientEnvironmentWcf(serviceName); environment.Start(); instancesWcf.Add(serviceName, environment); } return instancesWcf[serviceName]; }