コード例 #1
0
ファイル: ContinentRepository.cs プロジェクト: sschw/GW2.NET
        /// <inheritdoc />
        ICollection <int> IDiscoverable <int> .Discover()
        {
            var request  = new ContinentDiscoveryRequest();
            var response = this.serviceClient.Send <ICollection <int> >(request);

            return(this.identifiersResponseConverter.Convert(response, null));
        }
コード例 #2
0
ファイル: ContinentRepository.cs プロジェクト: sschw/GW2.NET
        /// <inheritdoc />
        async Task <ICollection <int> > IDiscoverable <int> .DiscoverAsync(CancellationToken cancellationToken)
        {
            var request  = new ContinentDiscoveryRequest();
            var response = await this.serviceClient.SendAsync <ICollection <int> >(request, cancellationToken).ConfigureAwait(false);

            return(this.identifiersResponseConverter.Convert(response, null));
        }
コード例 #3
0
        /// <inheritdoc />
        Task <ICollection <int> > IDiscoverable <int> .DiscoverAsync(CancellationToken cancellationToken)
        {
            var request  = new ContinentDiscoveryRequest();
            var response = this.serviceClient.SendAsync <ICollection <int> >(request, cancellationToken);

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