We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e912e3 commit 6934361Copy full SHA for 6934361
Code/src/Synnotech.Migrations.RavenDB/how-to-organize-migrations.png
1.33 KB
Code/src/Synnotech.Migrations.RavenDB/readme.md
@@ -100,13 +100,14 @@ namespace MyRavenDBAccessLayer
100
[MigrationVersion("1.0.0")]
101
public sealed class InitialMasterData : Migration
102
{
103
- public override async Task ApplyAsync(IAsyncDocumentSession session)
+ public override async Task ApplyAsync(IAsyncDocumentSession session,
104
+ CancellationToken cancellationToken = default)
105
106
var masterData = MasterData.GetInitialMasterData();
107
108
foreach (var item in masterData)
109
- await session.StoreAsync(item);
110
+ await session.StoreAsync(item, cancellationToken);
111
}
112
113
0 commit comments