Example #1
0
 public bool TryGetSession(string sessionId, out IAgentSession session)
 {
     return(pool.TryGet(sessionId, out session));
 }
        public void Register(IAgentSession agentSession)
        {
            SessionOfAgent = agentSession;
            if (SessionOfAgent.IsPublisher)
                publisherRegistrator.Add(SessionOfAgent.PublisherUrl, this);

            SessionTimeoutContext.StopWatchObj.Stop();
        }
Example #3
0
 public void BeginSession(IAgentSession session)
 {
     pool.Add(session);
     Log.Info($"Started Session '{session.SessionId}'.");
 }