/// <inheritdoc />
        Task <ICollection <string> > IDiscoverable <string> .DiscoverAsync(CancellationToken cancellationToken)
        {
            var request      = new QuagganDiscoveryRequest();
            var responseTask = this.serviceClient.SendAsync <ICollection <string> >(request, cancellationToken);

            return(responseTask.ContinueWith <ICollection <string> >(this.ConvertAsyncResponse, cancellationToken));
        }
Beispiel #2
0
        /// <inheritdoc />
        ICollection <string> IDiscoverable <string> .Discover()
        {
            var request  = new QuagganDiscoveryRequest();
            var response = this.serviceClient.Send <ICollection <string> >(request);

            return(this.identifiersResponseConverter.Convert(response, null));
        }
        /// <inheritdoc />
        ICollection <string> IDiscoverable <string> .Discover()
        {
            var request  = new QuagganDiscoveryRequest();
            var response = this.serviceClient.Send <ICollection <string> >(request);

            return(this.converterForIdentifiersResponse.Convert(response) ?? new List <string>(0));
        }
Beispiel #4
0
        /// <inheritdoc />
        async Task <ICollection <string> > IDiscoverable <string> .DiscoverAsync(CancellationToken cancellationToken)
        {
            var request  = new QuagganDiscoveryRequest();
            var response = await this.serviceClient.SendAsync <ICollection <string> >(request, cancellationToken).ConfigureAwait(false);

            return(this.identifiersResponseConverter.Convert(response, null));
        }