Interface ITableauFileJsonStream
Interface that represents a read/write stream to a Tableau JSON file.
Inherited Members
Namespace: Tableau.Migration.Content.Files
Assembly: Tableau.Migration.dll
Syntax
public interface ITableauFileJsonStream : IAsyncDisposable
Properties
JsonContent
Gets a read/write stream to the JSON content.
Declaration
Stream JsonContent { get; }
Property Value
| Type | Description |
|---|---|
| Stream |
Methods
GetJsonAsync(CancellationToken)
Gets the currently loaded JSON of the file, parsing the file if necessary. Changes to the JSON will be automatically saved before publishing.
Declaration
Task<JsonNode> GetJsonAsync(CancellationToken cancel)
Parameters
| Type | Name | Description |
|---|---|---|
| CancellationToken | cancel | The cancellation token to obey. |
Returns
| Type | Description |
|---|---|
| Task<JsonNode> | The mutable JSON node (root of the document). |