Reset() 공개 메소드

public Reset ( ) : void
리턴 void
예제 #1
0
 protected void Connect()
 {
     lock (sync_)
     {
         HashSet <SessionID> disconnectedSessions = new HashSet <SessionID>(disconnected_);
         foreach (SessionID sessionID in disconnectedSessions)
         {
             Session session = Session.LookupSession(sessionID);
             if (session.IsEnabled)
             {
                 if (session.IsNewSession)
                 {
                     session.Reset("New session");
                 }
                 if (session.IsSessionTime)
                 {
                     DoConnect(sessionID, _settings.Get(sessionID));
                 }
             }
         }
     }
 }
예제 #2
0
 protected void Connect()
 {
     lock (GdaxPrototyping.Common.Core.Threading.TThreadingHelpers.MainLockable)
     {
         HashSet <SessionID> disconnectedSessions = new HashSet <SessionID>(disconnected_);
         foreach (SessionID sessionID in disconnectedSessions)
         {
             Session session = Session.LookupSession(sessionID);
             if (session.IsEnabled)
             {
                 if (session.IsNewSession)
                 {
                     session.Reset("New session");
                 }
                 if (session.IsSessionTime)
                 {
                     DoConnect(sessionID, _settings.Get(sessionID));
                 }
             }
         }
     }
 }