6 writes to CancellationToken
Aspire.Hosting (1)
InteractionService.cs (1)
332await work(new ProgressContext { CancellationToken = interactionCts.Token }).ConfigureAwait(false);
Aspire.Hosting.Azure.Tests (1)
tests\Shared\TestInteractionService.cs (1)
83var progressContext = new ProgressContext { CancellationToken = cts.Token };
Aspire.Hosting.Browsers.Tests (1)
tests\Shared\TestInteractionService.cs (1)
83var progressContext = new ProgressContext { CancellationToken = cts.Token };
Aspire.Hosting.DevTunnels.Tests (1)
tests\Shared\TestInteractionService.cs (1)
83var progressContext = new ProgressContext { CancellationToken = cts.Token };
Aspire.Hosting.RemoteHost.Tests (1)
tests\Shared\TestInteractionService.cs (1)
83var progressContext = new ProgressContext { CancellationToken = cts.Token };
Aspire.Hosting.Tests (1)
tests\Shared\TestInteractionService.cs (1)
83var progressContext = new ProgressContext { CancellationToken = cts.Token };
14 references to CancellationToken
Aspire.Hosting (3)
ApplicationModel\ResourceCommandService.cs (1)
439using var linkedCts = CancellationTokenSource.CreateLinkedTokenSource(progress.CancellationToken, cancellationToken);
IInteractionService.cs (2)
114/// through the <see cref="ProgressContext.CancellationToken"/> provided to the work callback. 930/// when the callback completes. The <see cref="ProgressContext.CancellationToken"/> passed to the callback
Aspire.Hosting.Tests (6)
InteractionServiceTests.cs (6)
1140await Task.Delay(10, ctx.CancellationToken); 1165await Task.Delay(Timeout.Infinite, ctx.CancellationToken); 1199await Task.Delay(Timeout.Infinite, ctx.CancellationToken); 1201catch (OperationCanceledException) when (ctx.CancellationToken.IsCancellationRequested) 1232await Task.Delay(Timeout.Infinite, ctx.CancellationToken); 1234catch (OperationCanceledException) when (ctx.CancellationToken.IsCancellationRequested)
Stress.AppHost (5)
InteractionCommands.cs (5)
807await Task.Delay(10000, ctx.CancellationToken); 834await Task.Delay(10000, ctx.CancellationToken); 886await Task.Delay(10000, ctx.CancellationToken); 909await Task.Delay(10000, ctx.CancellationToken); 934await Task.Delay(10000, ctx.CancellationToken);