Example #1
0
        void FindProgressChanged(object sender, FindProgressChangedEventArgs e)
        {
            // Add EndpointDiscoveryMetadata to FindRequestContext.
            // If Request-Response message exchange pattern is used, the responses will be collected and sent in one message to the original sender (client)
            // If duplex message exchange pattern is used, each of the responses will be sent to the original sender (client) as they are received
            this.findRequestContext.AddMatchingEndpoint(e.EndpointDiscoveryMetadata);

            if (Interlocked.Increment(ref pendingEndpointCount) == 0)
            {
                this.Complete(false);
            }
        }
 void OnFindProgressChanged(object sender, FindProgressChangedEventArgs e)
 {
     lock (this.thisLock)
     {
         if (!this.discoveryCompleted)
         {
             this.discoveredEndpoints.EnqueueAndDispatch(e.EndpointDiscoveryMetadata, null, false);
             if (++this.totalDiscoveredEndpoints == this.totalExpectedEndpoints)
             {
                 this.discoveryCompleted = true;
                 this.discoveredEndpoints.Shutdown();
             }
         }
     }
 }
 private void WSBrowserFindProgressChanged(object sender, FindProgressChangedEventArgs e)
 {
     AddFoundServiceFromWSMetaData(e.EndpointDiscoveryMetadata);
 }
Example #4
0
 private void OnFindProgressChanged(object sender, FindProgressChangedEventArgs e)
 {
     this.PopulateUserList(e.EndpointDiscoveryMetadata);
 }
		private void DiscoveryClientOnFindProgressChanged(object sender, FindProgressChangedEventArgs findProgressChangedEventArgs)
		{
			FindNewEndpointMetadata(findProgressChangedEventArgs.EndpointDiscoveryMetadata.ListenUris.First());
		}
 private void OnFindProgressChanged(object sender, FindProgressChangedEventArgs e)
 {
     Connected.SafeInvoke(this, e.EndpointDiscoveryMetadata.Address);
 }
Example #7
0
 static void ClientFindProgressChanged(object sender, FindProgressChangedEventArgs e)
 {
     Console.WriteLine("Found ICalculatorService endpoint at {0}\n", e.EndpointDiscoveryMetadata.Address.Uri);
     InvokeCalculatorService(e.EndpointDiscoveryMetadata.Address);
 }