public void Save(SessionMetrics sessionMetrics) { _bucket.Upsert(new Document <SessionMetrics> { Content = sessionMetrics, Id = Guid.NewGuid().ToString() }); }
public SessionMetrics status() { SessionMetrics metrics = SessionPool.GetMetrics(); return(metrics); }
private void OnOperationFinished(ISession <SessionState> session, IOperation <TaskState> operation) { SessionMetrics sessionMetrics = session.GetMetrics(); Logger.LogInformation($"Progress: {sessionMetrics.ProgressInPercents}"); }