/// <summary> /// Gets a remote host service using the specified channel. /// </summary> /// <param name="channel">The channel.</param> /// <returns>The remote host service.</returns> public static IRemoteHostService GetRemoteHostService(IClientChannel channel) { if (channel == null) throw new ArgumentNullException("channel"); return (IRemoteHostService)channel.GetService(typeof(IRemoteHostService), ServiceName); }
/// <summary> /// Gets a remote host service using the specified channel. /// </summary> /// <param name="channel">The channel.</param> /// <returns>The remote host service.</returns> public static IRemoteHostService GetRemoteHostService(IClientChannel channel) { if (channel == null) { throw new ArgumentNullException("channel"); } return((IRemoteHostService)channel.GetService(typeof(IRemoteHostService), ServiceName)); }