/// <summary>
        /// Execute example
        /// </summary>
        /// <param name="cancellationToken">The cancellation token</param>
        /// <returns>The task</returns>
        public async Task Execute(CancellationToken cancellationToken)
        {
            var request = new ListValuesV1Request();

            var response = await _client
                           .Execute(request, cancellationToken)
                           .ThrowIfFailed()
                           .ConfigureAwait(Await.Default);

            Require.NotNull(response, nameof(response));
        }
コード例 #2
0
        /// <summary>
        /// Execute example
        /// </summary>
        /// <param name="cancellationToken">The cancellation token</param>
        /// <returns>The task</returns>
        public async Task Execute(CancellationToken cancellationToken)
        {
            var getValuesRequest  = new ListValuesV1Request();
            var getValuesResponse = await Run <ListValuesV1Request, ListValuesV1Response>(getValuesRequest, cancellationToken)
                                    .ConfigureAwait(Await.Default);

            Require.NotNull(getValuesResponse, nameof(getValuesResponse));



            var putValuesRequest  = new TestBodyValuesV1Request();
            var putValuesResponse = await Run <TestBodyValuesV1Request, TestBodyValuesV1Response>(putValuesRequest, cancellationToken)
                                    .ConfigureAwait(Await.Default);

            Require.NotNull(putValuesResponse, nameof(putValuesResponse));
        }