37 instantiations of 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);
32 references to CancellationChangeToken
HtmlGenerationWebSite (1)
SignalTokenProviderService.cs (1)
21var changeToken = new CancellationChangeToken(cancellationTokenSource.Token);
IntegrationTestsWebsite (1)
Infrastructure\DynamicEndpointDataSource.cs (1)
16private CancellationChangeToken? _cct;
Microsoft.AspNetCore.Mvc.Core.Test (1)
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.Routing.Tests (14)
CompositeEndpointDataSourceTest.cs (12)
166var token = Assert.IsType<CancellationChangeToken>(changeToken1); 179token = Assert.IsType<CancellationChangeToken>(changeToken2); 193token = Assert.IsType<CancellationChangeToken>(changeToken3); 206var token = Assert.IsType<CancellationChangeToken>(changeToken1); 218token = Assert.IsType<CancellationChangeToken>(changeToken2); 229token = Assert.IsType<CancellationChangeToken>(changeToken3); 242var token = Assert.IsType<CancellationChangeToken>(changeToken1); 253token = Assert.IsType<CancellationChangeToken>(changeToken2); 265token = Assert.IsType<CancellationChangeToken>(changeToken3);
TestObjects\DynamicEndpointDataSource.cs (2)
13private CancellationChangeToken _changeToken; 37var oldToken = _changeToken;
Microsoft.AspNetCore.StaticAssets (1)
StaticAssetEndpointDataSource.cs (1)
25private CancellationChangeToken _changeToken;
Microsoft.Extensions.FileProviders.Physical (7)
PhysicalFilesWatcher.cs (5)
179var cancellationChangeToken = new CancellationChangeToken(cancellationTokenSource.Token); 214var cancellationChangeToken = new CancellationChangeToken(cancellationTokenSource.Token); 506CancellationChangeToken changeToken) 513CancellationChangeToken changeToken, 523public CancellationChangeToken ChangeToken { get; }
PollingFileChangeToken.cs (1)
28private CancellationChangeToken? _changeToken;
PollingWildCardChangeToken.cs (1)
32private CancellationChangeToken? _changeToken;
Microsoft.Extensions.Primitives (1)
CancellationChangeToken.cs (1)
18/// Initializes a new instance of <see cref="CancellationChangeToken"/>.
Microsoft.Extensions.ServiceDiscovery.Dns (1)
DnsServiceEndpointProviderBase.cs (1)
21private CancellationChangeToken _lastChangeToken;
RazorBuildWebSite (1)
UpdateableFileProvider.cs (1)
98public CancellationChangeToken ChangeToken { get; }