void ISessionWatchdogContext.AddToSplitByTimeout(ISessionProxy sessionProxy) { if (sessionProxy.IsFinished) { return; } sessionsToSplitByTimeout.Put(sessionProxy); }
void ISessionWatchdogContext.CloseOrEnqueueForClosing(ISessionInternals session, long closeGracePeriodInMillis) { if (session.TryEnd()) { return; } var closeTime = timingProvider.ProvideTimestampInMilliseconds() + closeGracePeriodInMillis; session.SplitByEventsGracePeriodEndTimeInMillis = closeTime; sessionsToClose.Put(session); }