JsonDataWriter
- Namespace:
PPDS.Migration.Formats - Assembly:
PPDS.Migration - Kind: Class
- Implements:
IJsonDataWriter
Summary
Writes migration data as a PPDS-native JSON document.
Members
Constructors
JsonDataWriter()
JsonDataWriter()
Initializes a new instance of the PPDS.Migration.Formats.JsonDataWriter class.
JsonDataWriter(ILogger<JsonDataWriter> logger)
JsonDataWriter(ILogger<JsonDataWriter> logger)
Initializes a new instance of the PPDS.Migration.Formats.JsonDataWriter class.
- Param
logger: The logger.
Methods
WriteAsync
Task WriteAsync(MigrationData data, Stream stream, IProgressReporter progress, CancellationToken cancellationToken)
Writes migration data to a stream as a JSON document.
WriteAsync
Task WriteAsync(MigrationData data, string path, IProgressReporter progress, CancellationToken cancellationToken)
Writes migration data to a JSON file at the given path.
Fields
FormatVersion
string FormatVersion
Current JSON export format version. Bump on breaking schema changes.
SchemaUri
string SchemaUri
$schema URI for the JSON export document.