public IAsyncResult BeginProbeMatchOperation(ProbeMatchesMessageApril2005 response, AsyncCallback callback, object state)
 {
     Fx.Assert(response != null, "The response message cannot be null.");
     if (response.ProbeMatches != null)
     {
         this.responseReceiver.ProbeMatchOperation(
             OperationContext.Current.IncomingMessageHeaders.RelatesTo,
             DiscoveryUtility.ToDiscoveryMessageSequenceOrNull(response.MessageSequence),
             DiscoveryUtility.ToEndpointDiscoveryMetadataCollection(response.ProbeMatches),
             false);
     }
     return(new CompletedAsyncResult(callback, state));
 }
Ejemplo n.º 2
0
 protected override IAsyncResult BeginSendFindResponse(
     IDiscoveryResponseContractApril2005 responseChannel,
     DiscoveryMessageSequence discoveryMessageSequence,
     EndpointDiscoveryMetadata matchingEndpoint,
     AsyncCallback callback,
     object state)
 {
     return(responseChannel.BeginProbeMatchOperation(
                ProbeMatchesMessageApril2005.Create(
                    discoveryMessageSequence,
                    matchingEndpoint),
                callback,
                state));
 }