Example #1
0
        public EndpointDiscoveryMetadata11[] FindEndpoints(FindCriteria11 criteria)
        {
            var endpoints = implementation.FindEndpoints(criteria.ToFindCriteria());

            return(Array.ConvertAll(endpoints, EndpointDiscoveryMetadata11.FromEndpointDiscoveryMetadata));
        }
 IAsyncResult IServiceCatalog.BeginFindServices(FindCriteria11 criteria, AsyncCallback callback, object state)
 {
     return(new SynchronousResult(callback, state, implementation.FindServices(criteria.ToFindCriteria())
                                  .Select(service => EndpointDiscoveryMetadata11.FromEndpointDiscoveryMetadata(service))));
 }
Example #3
0
 public IAsyncResult BeginFindEndpoints(FindCriteria11 criteria, AsyncCallback callback, object state)
 {
     return(new SynchronousResult(callback, state, FindEndpoints(criteria)));
 }
 EndpointDiscoveryMetadata11[] IServiceCatalog.FindServices(FindCriteria11 criteria)
 {
     return(null);
 }