RenameAccountAsync() 공개 메소드

public RenameAccountAsync ( global request, CallOptions options ) : AsyncUnaryCall
request global
options CallOptions
리턴 AsyncUnaryCall
예제 #1
0
        public async Task RenameAccountAsync(Account account, string newAccountName)
        {
            if (newAccountName == null)
                throw new ArgumentNullException(nameof(newAccountName));

            var client = new WalletService.WalletServiceClient(_channel);
            var request = new RenameAccountRequest
            {
                AccountNumber = account.AccountNumber,
                NewName = newAccountName,
            };
            await client.RenameAccountAsync(request, cancellationToken: _tokenSource.Token);
        }