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; } }
public PSEditTablesRequest(EditTablesRequest editTablesRequest) { this.LinkTables = editTablesRequest?.LinkTables?.Select(element => new PSLinkTableRequest(element)).ToList(); }
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; } }