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);
            }
        }
Пример #4
0
		public EndpointDiscoveryMetadata11[] FindEndpoints(FindCriteria11 criteria)
		{
			var endpoints = implementation.FindEndpoints(criteria.ToFindCriteria());
			return Array.ConvertAll(endpoints, EndpointDiscoveryMetadata11.FromEndpointDiscoveryMetadata);
		}
Пример #5
0
		public IAsyncResult BeginFindEndpoints(FindCriteria11 criteria, AsyncCallback callback, object state)
		{
			return new SynchronousResult(callback, state, FindEndpoints(criteria));
		}
        IAsyncResult IServiceCatalog.BeginFindServices(FindCriteria11 criteria, AsyncCallback callback, object state)
        {
            return new SynchronousResult(callback, state, implementation.FindServices(criteria.ToFindCriteria())
				.Select(service => EndpointDiscoveryMetadata11.FromEndpointDiscoveryMetadata(service)));
        }
		EndpointDiscoveryMetadata11[] IServiceCatalog.FindServices(FindCriteria11 criteria)
		{
			return null;
		}