ExportToStream should be public

This commit is contained in:
cdwcgt 2023-05-05 21:28:43 +09:00
parent 747f912af5
commit 4393e53b43
No known key found for this signature in database
GPG Key ID: 144396D01095C3A2
4 changed files with 4 additions and 4 deletions

View File

@ -115,7 +115,7 @@ public TestLegacyModelExporter(Storage storage)
public string GetExtension() => FileExtension;
protected override void ExportToStream(TestModel model, Stream outputStream, ProgressNotification? notification, CancellationToken cancellationToken = default)
public override void ExportToStream(TestModel model, Stream outputStream, ProgressNotification? notification, CancellationToken cancellationToken = default)
{
}

View File

@ -27,7 +27,7 @@ protected LegacyArchiveExporter(Storage storage)
{
}
protected override void ExportToStream(TModel model, Stream outputStream, ProgressNotification? notification, CancellationToken cancellationToken = default)
public override void ExportToStream(TModel model, Stream outputStream, ProgressNotification? notification, CancellationToken cancellationToken = default)
=> exportZipArchive(model, outputStream, notification, cancellationToken);
/// <summary>

View File

@ -140,6 +140,6 @@ public Task ExportToStreamAsync(Live<TModel> model, Stream stream, ProgressNotif
/// <param name="outputStream">The output stream to export to.</param>
/// <param name="notification">The notification will displayed to the user</param>
/// <param name="cancellationToken">The Cancellation token that can cancel the exporting.</param>
protected abstract void ExportToStream(TModel model, Stream outputStream, ProgressNotification? notification, CancellationToken cancellationToken = default);
public abstract void ExportToStream(TModel model, Stream outputStream, ProgressNotification? notification, CancellationToken cancellationToken = default);
}
}

View File

@ -28,7 +28,7 @@ protected override string GetFilename(ScoreInfo score)
protected override string FileExtension => ".osr";
protected override void ExportToStream(ScoreInfo model, Stream stream, ProgressNotification? notification, CancellationToken cancellationToken = default)
public override void ExportToStream(ScoreInfo model, Stream stream, ProgressNotification? notification, CancellationToken cancellationToken = default)
{
var file = model.Files.SingleOrDefault();
if (file == null)