public bool IsLocal(Endpoint endpoint) { if (_publishedEndpoint != null && endpoint.Equivalent(_publishedEndpoint)) { return(true); } lock (this) { return(endpoint.Equivalent(_endpoint)); } }
public override bool Equivalent(Endpoint endpoint) { if (endpoint is WSEndpoint wsEndpoint) { return(_delegate.Equivalent(wsEndpoint._delegate)); } else { return(false); } }