public IAsyncResult BeginProbeOperation(FindCriteria findCriteria, AsyncCallback callback, object state)
        {
            ProbeMessage11 request = new ProbeMessage11();

            request.Probe = FindCriteria11.FromFindCriteria(findCriteria);
            return(base.Channel.BeginProbeOperation(request, callback, state));
        }
        public void ProbeOperation(FindCriteria findCriteria)
        {
            ProbeMessage11 request = new ProbeMessage11();

            request.Probe = FindCriteria11.FromFindCriteria(findCriteria);
            this.duplexInnerClient.ProbeOperation(request);
        }
        public void ProbeOperation(FindCriteria findCriteria)
        {
            ProbeMessage11 request = new ProbeMessage11();

            request.Probe = FindCriteria11.FromFindCriteria(findCriteria);

            ProbeMatchesMessage11 response = base.Channel.ProbeOperation(request);

            if ((response != null) && (response.ProbeMatches != null))
            {
                this.responseReceiver.ProbeMatchOperation(
                    OperationContext.Current.IncomingMessageHeaders.RelatesTo,
                    DiscoveryUtility.ToDiscoveryMessageSequenceOrNull(response.MessageSequence),
                    DiscoveryUtility.ToEndpointDiscoveryMetadataCollection(response.ProbeMatches),
                    true);
            }
            else
            {
                this.responseReceiver.PostFindCompletedAndRemove(OperationContext.Current.IncomingMessageHeaders.RelatesTo, false, null);
            }
        }
 void IDiscoveryContractAdhoc11.ProbeOperation(ProbeMessage11 request)
 {
     Fx.Assert("The [....] method IDiscoveryContractAdhoc11.ProbeOperation must not get invoked. It is marked with PreferAsyncInvocation flag.");
 }
 IAsyncResult IDiscoveryContractManaged11.BeginProbeOperation(ProbeMessage11 request, AsyncCallback callback, object state)
 {
     return new ProbeRequestResponse11AsyncResult(request, this, callback, state);
 }
 ProbeMatchesMessage11 IDiscoveryContractManaged11.ProbeOperation(ProbeMessage11 request)
 {
     Fx.Assert("The [....] method IDiscoveryContractManaged11.ProbeOperation must not get invoked. It is marked with PreferAsyncInvocation flag.");
     return null;
 }
 IAsyncResult IDiscoveryContractAdhoc11.BeginProbeOperation(ProbeMessage11 request, AsyncCallback callback, object state)
 {
     return new ProbeDuplex11AsyncResult(request, this, null, callback, state);
 }
 public IAsyncResult BeginProbeOperation(ProbeMessage11 request, AsyncCallback callback, object state)
 {
     return(base.Channel.BeginProbeOperation(request, callback, state));
 }
 public void ProbeOperation(ProbeMessage11 request)
 {
     base.Channel.ProbeOperation(request);
 }