예제 #1
0
 public bool IsLocal(Endpoint endpoint)
 {
     if (_publishedEndpoint != null && endpoint.Equivalent(_publishedEndpoint))
     {
         return(true);
     }
     lock (this)
     {
         return(endpoint.Equivalent(_endpoint));
     }
 }
예제 #2
0
파일: WSEndpoint.cs 프로젝트: nail-lian/ice
 public override bool Equivalent(Endpoint endpoint)
 {
     if (endpoint is WSEndpoint wsEndpoint)
     {
         return(_delegate.Equivalent(wsEndpoint._delegate));
     }
     else
     {
         return(false);
     }
 }