public bool Equals(IPeerInfo other) { if (other == null) { return(false); } return(EndPoint.Equals(other.EndPoint) && Id == other.Id); }
public static BermudaServiceClient GetServiceClient(IPeerInfo peer) { BermudaServiceClient client = null; var url = String.Format("net.tcp://{0}/BermudaService.svc", peer.EndPoint); var binding = new NetTcpBinding(SecurityMode.None); var endpoint = new EndpointAddress(new Uri(url)); HostEnvironment.AdjustBinding(binding); client = new BermudaServiceClient(binding, endpoint); return(client); }
public bool Equals(IPeerInfo other) { if (other == null) return false; return EndPoint.Equals(other.EndPoint) && Id == other.Id; }
public static BermudaServiceClient GetServiceClient(IPeerInfo peer) { BermudaServiceClient client = null; var url = String.Format("net.tcp://{0}/BermudaService.svc", peer.EndPoint); var binding = new NetTcpBinding(SecurityMode.None); var endpoint = new EndpointAddress(new Uri(url)); HostEnvironment.AdjustBinding(binding); client = new BermudaServiceClient(binding, endpoint); return client; }