private void HandlePulse(object sender, PulseKind kind) { switch (kind) { case PulseKind.BackgroundJobEnqueued: _cts.Cancel(); break; } }
public void Pulse(PulseKind kind) { _context.Pulse(kind); }
internal void Pulse(PulseKind kind) { Pulsed?.Invoke(this, kind); }