File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
ServiceControl.Audit.Persistence.RavenDB
ServiceControl.Persistence.RavenDB Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -16,8 +16,9 @@ public static async Task WaitForLicenseOrThrow(DatabaseConfiguration configurati
1616 {
1717 BaseAddress = new Uri ( configuration . ServerConfiguration . ConnectionString ?? configuration . ServerConfiguration . ServerUrl )
1818 } ;
19- using var cts = new CancellationTokenSource ( 30_000 ) ;
2019
20+ // Not linking to the incoming cancellationToken to ensure no OperationCancelledException prevents the last InvalidOperationException to be thrown
21+ using var cts = new CancellationTokenSource ( 30_000 ) ;
2122 while ( ! cts . IsCancellationRequested )
2223 {
2324 var httpResponse = await client . GetAsync ( "license/status" , cancellationToken ) ;
Original file line number Diff line number Diff line change @@ -16,8 +16,9 @@ public static async Task WaitForLicenseOrThrow(RavenPersisterSettings configurat
1616 {
1717 BaseAddress = new Uri ( configuration . ConnectionString ?? configuration . ServerUrl )
1818 } ;
19- using var cts = new CancellationTokenSource ( 30_000 ) ;
2019
20+ // Not linking to the incoming cancellationToken to ensure no OperationCancelledException prevents the last InvalidOperationException to be thrown
21+ using var cts = new CancellationTokenSource ( 30_000 ) ;
2122 while ( ! cts . IsCancellationRequested )
2223 {
2324 var httpResponse = await client . GetAsync ( "license/status" , cancellationToken ) ;
You can’t perform that action at this time.
0 commit comments