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

            return instance;
        }
Exemple #3
0
        public static Heartbeat GetInstance(DynamoModel dynModel)
        {
            lock (typeof(Heartbeat))
            {
                if (instance == null)
                    instance = new Heartbeat(dynModel);
            }

            return instance;
        }
Exemple #4
0
 public static void DestroyInstance()
 {
     lock (typeof(Heartbeat))
     {
         if (instance != null)
         {
             instance.DestroyInternal();
             instance = null;
         }
     }
 }