Exemplo n.º 1
0
        /// <inheritdoc />
        ICollection <string> IDiscoverable <string> .Discover()
        {
            var request  = new FileDiscoveryRequest();
            var response = this.serviceClient.Send <ICollection <string> >(request);

            return(this.identifiersResponseConverter.Convert(response, null));
        }
Exemplo n.º 2
0
        /// <inheritdoc />
        async Task <ICollection <string> > IDiscoverable <string> .DiscoverAsync(CancellationToken cancellationToken)
        {
            var request  = new FileDiscoveryRequest();
            var response = await this.serviceClient.SendAsync <ICollection <string> >(request, cancellationToken).ConfigureAwait(false);

            return(this.identifiersResponseConverter.Convert(response, null));
        }
Exemplo n.º 3
0
        /// <inheritdoc />
        Task <ICollection <string> > IDiscoverable <string> .DiscoverAsync(CancellationToken cancellationToken)
        {
            var request  = new FileDiscoveryRequest();
            var response = this.serviceClient.SendAsync <ICollection <string> >(request, cancellationToken);

            return(response.ContinueWith <ICollection <string> >(this.ConvertAsyncResponse, cancellationToken));
        }