public static bool SourceServerExists(string endpoint) { try { Binding b = SourceServerBinding(); EndpointAddress ea = new EndpointAddress(endpoint); InstanceContext ic = new InstanceContext(new SourceServiceCallback()); var client = new RiverSystemServiceClient(ic, b, ea); client.Open(); } catch { return false; } return true; }
public static bool SourceServerExists(string endpoint) { try { Binding b = SourceServerBinding(); EndpointAddress ea = new EndpointAddress(endpoint); InstanceContext ic = new InstanceContext(new SourceServiceCallback()); var client = new RiverSystemServiceClient(ic, b, ea); client.Open(); } catch { return(false); } return(true); }