37 references to CancellationChangeToken
ApiExplorerWebSite (2)
ActionDescriptorChangeProvider.cs (2)
23return new CancellationChangeToken(changeTokenSource.Token); 26return new CancellationChangeToken(ChangeToken.TokenSource.Token);
HtmlGenerationWebSite (1)
SignalTokenProviderService.cs (1)
21var changeToken = new CancellationChangeToken(cancellationTokenSource.Token);
IntegrationTestsWebsite (1)
Infrastructure\DynamicEndpointDataSource.cs (1)
28_cct = new CancellationChangeToken(_cts.Token);
Microsoft.AspNetCore.Authorization.Test (1)
AuthorizationMiddlewareTests.cs (1)
228dataSource.Setup(d => d.GetChangeToken()).Returns(new CancellationChangeToken(new CancellationToken()));
Microsoft.AspNetCore.Components.Endpoints (3)
Builder\RazorComponentEndpointDataSource.cs (2)
64_changeToken = new CancellationChangeToken(_cancellationTokenSource.Token); 166_changeToken = new CancellationChangeToken(_cancellationTokenSource.Token);
DependencyInjection\HotReloadService.cs (1)
25public IChangeToken GetChangeToken() => new CancellationChangeToken(_tokenSource.Token);
Microsoft.AspNetCore.Components.Server (1)
Circuits\CircuitRegistry.cs (1)
152new CancellationChangeToken(cancellationTokenSource.Token),
Microsoft.AspNetCore.Mvc (1)
HotReloadService.cs (1)
64IChangeToken IActionDescriptorChangeProvider.GetChangeToken() => new CancellationChangeToken(_tokenSource.Token);
Microsoft.AspNetCore.Mvc.Core (2)
Infrastructure\DefaultActionDescriptorCollectionProvider.cs (1)
165_changeToken = new CancellationChangeToken(_cancellationTokenSource.Token);
Routing\ActionEndpointDataSourceBase.cs (1)
135_changeToken = new CancellationChangeToken(_cancellationTokenSource.Token);
Microsoft.AspNetCore.Mvc.Core.Test (2)
Infrastructure\DefaultActionDescriptorCollectionProviderTest.cs (1)
181return new CancellationChangeToken(TokenSource.Token);
Routing\ActionEndpointDataSourceBaseTest.cs (1)
85var changeToken = new CancellationChangeToken(cts.Token);
Microsoft.AspNetCore.Mvc.Razor.Test (3)
RazorViewEngineTest.cs (3)
171var changeToken = new CancellationChangeToken(cancellationTokenSource.Token); 906var changeToken = new CancellationChangeToken(cancellationTokenSource.Token); 1005var changeToken = new CancellationChangeToken(cancellationTokenSource.Token);
Microsoft.AspNetCore.Mvc.RazorPages.Test (1)
src\Mvc\Mvc.Core\test\Routing\ActionEndpointDataSourceBaseTest.cs (1)
85var changeToken = new CancellationChangeToken(cts.Token);
Microsoft.AspNetCore.Mvc.TagHelpers (1)
CacheTagHelper.cs (1)
95options.AddExpirationToken(new CancellationChangeToken(tokenSource.Token));
Microsoft.AspNetCore.Mvc.TagHelpers.Test (1)
CacheTagHelperTest.cs (1)
491.AddExpirationToken(new CancellationChangeToken(tokenSource.Token));
Microsoft.AspNetCore.Routing (1)
CompositeEndpointDataSource.cs (1)
259_consumerChangeToken = new CancellationChangeToken(cts.Token);
Microsoft.AspNetCore.Routing.Tests (1)
TestObjects\DynamicEndpointDataSource.cs (1)
49_changeToken = new CancellationChangeToken(_cts.Token);
Microsoft.AspNetCore.StaticAssets (2)
StaticAssetEndpointDataSource.cs (2)
39_changeToken = new CancellationChangeToken(_cancellationTokenSource.Token); 115_changeToken = new CancellationChangeToken(_cancellationTokenSource.Token);
Microsoft.Extensions.FileProviders.Physical (4)
PhysicalFilesWatcher.cs (2)
179var cancellationChangeToken = new CancellationChangeToken(cancellationTokenSource.Token); 214var cancellationChangeToken = new CancellationChangeToken(cancellationTokenSource.Token);
PollingFileChangeToken.cs (1)
70_changeToken = new CancellationChangeToken(_tokenSource.Token);
PollingWildCardChangeToken.cs (1)
78_changeToken = new CancellationChangeToken(_tokenSource.Token);
Microsoft.Extensions.Logging.EventSource (1)
LoggingEventSource.cs (1)
384return new CancellationChangeToken(cts.Token);
Microsoft.Extensions.ServiceDiscovery.Dns (2)
DnsServiceEndpointProviderBase.cs (2)
43_lastChangeToken = new CancellationChangeToken(cancellation.Token); 133_lastChangeToken = new CancellationChangeToken(cancellation.Token);
Microsoft.Extensions.ServiceDiscovery.Tests (4)
ServiceEndpointResolverTests.cs (4)
90collection.AddChangeToken(new CancellationChangeToken(cts[0].Token)); 142collection.AddChangeToken(new CancellationChangeToken(cts[0].Token)); 178collection.AddChangeToken(new CancellationChangeToken(cts[0].Token)); 230collection.AddChangeToken(new CancellationChangeToken(cts[0].Token));
RazorBuildWebSite (2)
UpdateableFileProvider.cs (2)
69return new CancellationChangeToken(_pagesTokenSource.Token); 87ChangeToken = new CancellationChangeToken(TokenSource.Token);