I want the server to continually track the available client using WCF Discovery.
Public zero start () {searchCriteria = new search_cratreria (typefaster (application)) {scops = {new yuri (scope)}, duration = timepan From Milliseconds (Discovery Interval Inmilicand)}; Discoveryclient = Genetically Administered Client (); DiscoveryClient.FindAsync (findCriteria); } Private Discovery Client GetInitilizedDisoveryClient () {var Client = New Discovery Client (New IncubationPrintPoint ()); Client Identify progress + onphaid progression; Client.FindCompleted + = OnFindCompleted; Return customer; } Private Zero OnFindCompleted (Object Sender, FindCompletedEventArgs e) {if (E.Cancelled) {// here! Sometimes E. The error is not zero, but as the question is described in discoveryclient.FindAsync (findCriteria); Unfortunately, sometimes I receive a canceled Udp channel at the specified point by comment: Communications object, System.ServiceModel.Channels.UdpChannelFactory + client UdpDuplexChannel can not be used for communication, because It has been revoked.
Why is there any idea?
It may be that some networks in your office are leaving the infrastructure connection.
You should write your code to investigate the aborted communication, and recover from it.
To restore, you can close the canceled channel and create a new one.
Comments
Post a Comment