Beispiel #1
0
 public void Save(SessionMetrics sessionMetrics)
 {
     _bucket.Upsert(new Document <SessionMetrics>
     {
         Content = sessionMetrics,
         Id      = Guid.NewGuid().ToString()
     });
 }
Beispiel #2
0
        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}");
        }