コード例 #1
0
        /// <inheritdoc />
        Quaggan IRepository <string, Quaggan> .Find(string identifier)
        {
            var request = new QuagganDetailsRequest {
                Identifier = identifier
            };
            var response = this.serviceClient.Send <QuagganDTO>(request);

            return(this.responseConverter.Convert(response, null));
        }
コード例 #2
0
        /// <inheritdoc />
        Quaggan IRepository <string, Quaggan> .Find(string identifier)
        {
            var request = new QuagganDetailsRequest
            {
                Identifier = identifier
            };
            var response = this.serviceClient.Send <QuagganDataContract>(request);

            return(this.converterForResponse.Convert(response));
        }
コード例 #3
0
        /// <inheritdoc />
        Task <Quaggan> IRepository <string, Quaggan> .FindAsync(string identifier, CancellationToken cancellationToken)
        {
            var request = new QuagganDetailsRequest
            {
                Identifier = identifier
            };
            var responseTask = this.serviceClient.SendAsync <QuagganDataContract>(request, cancellationToken);

            return(responseTask.ContinueWith <Quaggan>(this.ConvertAsyncResponse, cancellationToken));
        }
コード例 #4
0
        /// <inheritdoc />
        async Task <Quaggan> IRepository <string, Quaggan> .FindAsync(string identifier, CancellationToken cancellationToken)
        {
            var request = new QuagganDetailsRequest
            {
                Identifier = identifier
            };
            var response = await this.serviceClient.SendAsync <QuagganDTO>(request, cancellationToken).ConfigureAwait(false);

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