This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
internal class ShutdownDetector : IRegisteredObject, IDisposable | |
{ | |
private readonly CancellationTokenSource _cts = new CancellationTokenSource(); | |
private Timer _checkAppPoolTimer; | |
private static readonly TimeSpan _appPoolCheckInterval = TimeSpan.FromSeconds(10); | |
public CancellationToken Token | |
{ | |
get { return _cts.Token; } | |
} |