1 write to _cts
Microsoft.Extensions.ML (1)
ModelReloadToken.cs (1)
20
_cts
= new CancellationTokenSource();
3 references to _cts
Microsoft.Extensions.ML (3)
ModelReloadToken.cs (3)
31
public bool HasChanged =>
_cts
.IsCancellationRequested;
42
public IDisposable RegisterChangeCallback(Action<object> callback, object state) =>
_cts
.Token.Register(callback, state);
47
public void OnReload() =>
_cts
.Cancel();