Пример #1
0
 public static void Start()
 {
     userID = GetUserID();
     sessionID = Guid.NewGuid().ToString();
     loggerImpl = new Log("Dynamo", userID, sessionID);
     heartbeat = Heartbeat.GetInstance();
 }
Пример #2
0
        public static Heartbeat GetInstance()
        {
            lock (typeof(Heartbeat))
            {
                if (instance == null)
                    instance = new Heartbeat();
            }

            return instance;
        }
Пример #3
0
        public static Heartbeat GetInstance(DynamoModel dynModel)
        {
            lock (typeof(Heartbeat))
            {
                if (instance == null)
                    instance = new Heartbeat(dynModel);
            }

            return instance;
        }
Пример #4
0
 public static void DestroyInstance()
 {
     lock (typeof(Heartbeat))
     {
         if (instance != null)
         {
             instance.DestroyInternal();
             instance = null;
         }
     }
 }