public IAsyncResult BeginResolveOperation(ResolveCriteria resolveCriteria, AsyncCallback callback, object state)
        {
            ResolveMessage11 request = new ResolveMessage11();

            request.Resolve = ResolveCriteria11.FromResolveCriteria(resolveCriteria);
            return(this.duplexInnerClient.BeginResolveOperation(request, callback, state));
        }
        public void ResolveOperation(ResolveCriteria resolveCriteria)
        {
            ResolveMessage11 request = new ResolveMessage11();

            request.Resolve = ResolveCriteria11.FromResolveCriteria(resolveCriteria);
            this.duplexInnerClient.ResolveOperation(request);
        }
        public IAsyncResult BeginResolveOperation(ResolveCriteria resolveCriteria, AsyncCallback callback, object state)
        {
            ResolveMessage11 request = new ResolveMessage11();

            request.Resolve = ResolveCriteria11.FromResolveCriteria(resolveCriteria);

            return(base.Channel.BeginResolveOperation(request, callback, state));
        }
        public void ResolveOperation(ResolveCriteria resolveCriteria)
        {
            ResolveMessage11 request = new ResolveMessage11();

            request.Resolve = ResolveCriteria11.FromResolveCriteria(resolveCriteria);

            ResolveMatchesMessage11 response = base.Channel.ResolveOperation(request);

            if ((response != null) && (response.ResolveMatches != null) && (response.ResolveMatches.ResolveMatch != null))
            {
                this.responseReceiver.ResolveMatchOperation(
                    OperationContext.Current.IncomingMessageHeaders.RelatesTo,
                    DiscoveryUtility.ToDiscoveryMessageSequenceOrNull(response.MessageSequence),
                    response.ResolveMatches.ResolveMatch.ToEndpointDiscoveryMetadata());
            }
            else
            {
                this.responseReceiver.PostResolveCompletedAndRemove(OperationContext.Current.IncomingMessageHeaders.RelatesTo, false, null);
            }
        }
 IAsyncResult IDiscoveryContractManaged11.BeginResolveOperation(ResolveMessage11 request, AsyncCallback callback, object state)
 {
     return new ResolveRequestResponse11AsyncResult(request, this, callback, state);
 }
        ResolveMatchesMessage11 IDiscoveryContractManaged11.ResolveOperation(ResolveMessage11 request)
        {
            Fx.Assert("The [....] method IDiscoveryContractManaged11.ResolveOperation must not get invoked. It is marked with PreferAsyncInvocation flag.");

            return null;
        }
 IAsyncResult IDiscoveryContractAdhoc11.BeginResolveOperation(ResolveMessage11 request, AsyncCallback callback, object state)
 {
     return new ResolveDuplex11AsyncResult(request, this, null, callback, state);
 }
 void IDiscoveryContractAdhoc11.ResolveOperation(ResolveMessage11 request)
 {
     Fx.Assert("The [....] method IDiscoveryContractAdhoc11.ResolveOperation must not get invoked. It is marked with PreferAsyncInvocation flag.");
 }
 public IAsyncResult BeginResolveOperation(ResolveMessage11 request, AsyncCallback callback, object state)
 {
     return(base.Channel.BeginResolveOperation(request, callback, state));
 }
 public void ResolveOperation(ResolveMessage11 request)
 {
     base.Channel.ResolveOperation(request);
 }