/// <inheritdoc /> Task <ICollection <int> > IDiscoverable <int> .DiscoverAsync(CancellationToken cancellationToken) { var request = new ItemDiscoveryRequest(); var responseTask = this.serviceClient.SendAsync <ItemCollectionDataContract>(request, cancellationToken); return(responseTask.ContinueWith <ICollection <int> >(this.ConvertAsyncResponse, cancellationToken)); }
/// <inheritdoc /> ICollection <int> IDiscoverable <int> .Discover() { var request = new ItemDiscoveryRequest(); var response = this.serviceClient.Send <ItemCollectionDataContract>(request); if (response.Content == null) { return(new List <int>(0)); } return(this.converterForItemCollection.Convert(response.Content, null)); }