public virtual Response EditTables(string linkConnectionName, EditTablesRequest editTablesRequest, CancellationToken cancellationToken = default)
 {
     using var scope = _clientDiagnostics.CreateScope("LinkConnectionClient.EditTables");
     scope.Start();
     try
     {
         return(RestClient.EditTables(linkConnectionName, editTablesRequest, cancellationToken));
     }
     catch (Exception e)
     {
         scope.Failed(e);
         throw;
     }
 }
Пример #2
0
 public PSEditTablesRequest(EditTablesRequest editTablesRequest)
 {
     this.LinkTables = editTablesRequest?.LinkTables?.Select(element => new PSLinkTableRequest(element)).ToList();
 }
Пример #3
0
        public void EditTables(string linkConnectionName, string rawJsonContent)
        {
            EditTablesRequest editTablesRequest = JsonConvert.DeserializeObject <EditTablesRequest>(rawJsonContent);

            _linkConnectionClient.EditTables(linkConnectionName, editTablesRequest);
        }
 public virtual async Task <Response> EditTablesAsync(string linkConnectionName, EditTablesRequest editTablesRequest, CancellationToken cancellationToken = default)
 {
     using var scope = _clientDiagnostics.CreateScope("LinkConnectionClient.EditTables");
     scope.Start();
     try
     {
         return(await RestClient.EditTablesAsync(linkConnectionName, editTablesRequest, cancellationToken).ConfigureAwait(false));
     }
     catch (Exception e)
     {
         scope.Failed(e);
         throw;
     }
 }