public ShardedSessionStatistics(IShardedSessionImplementor session)
 {
     sessionStats = new HashedSet<ISessionStatistics>();
     foreach(IShard shard in session.Shards)
     {
         if(shard.Session != null)
         {
             sessionStats.Add(shard.Session.Statistics);
         }
         else
         {
             IOpenSessionEvent ose = new StatOpenSessionEvent(sessionStats);
             shard.AddOpenSessionEvent(ose);
         }
     }
 }
Exemplo n.º 2
0
 public ShardedSessionStatistics(IShardedSessionImplementor session)
 {
     sessionStats = new HashedSet <ISessionStatistics>();
     foreach (IShard shard in session.Shards)
     {
         if (shard.Session != null)
         {
             sessionStats.Add(shard.Session.Statistics);
         }
         else
         {
             IOpenSessionEvent ose = new StatOpenSessionEvent(sessionStats);
             shard.AddOpenSessionEvent(ose);
         }
     }
 }