/// <inheritdoc /> ICollection <int> IDiscoverable <int> .Discover() { var request = new RecipeDiscoveryRequest(); var response = this.serviceClient.Send <ICollection <int> >(request); return(this.identifiersResponseConverter.Convert(response, null)); }
/// <inheritdoc /> async Task <ICollection <int> > IDiscoverable <int> .DiscoverAsync(CancellationToken cancellationToken) { var request = new RecipeDiscoveryRequest(); var response = await this.serviceClient.SendAsync <ICollection <int> >(request, cancellationToken).ConfigureAwait(false); return(this.identifiersResponseConverter.Convert(response, null)); }
/// <inheritdoc /> Task <ICollection <int> > IDiscoverable <int> .DiscoverAsync(CancellationToken cancellationToken) { var request = new RecipeDiscoveryRequest(); var responseTask = this.serviceClient.SendAsync <ICollection <int> >(request, cancellationToken); return(responseTask.ContinueWith <ICollection <int> >(this.ConvertAsyncResponse, cancellationToken)); }