public static void Start() { userID = GetUserID(); sessionID = Guid.NewGuid().ToString(); loggerImpl = new Log("Dynamo", userID, sessionID); heartbeat = Heartbeat.GetInstance(); }
public static Heartbeat GetInstance() { lock (typeof(Heartbeat)) { if (instance == null) instance = new Heartbeat(); } return instance; }
public static Heartbeat GetInstance(DynamoModel dynModel) { lock (typeof(Heartbeat)) { if (instance == null) instance = new Heartbeat(dynModel); } return instance; }
public static void DestroyInstance() { lock (typeof(Heartbeat)) { if (instance != null) { instance.DestroyInternal(); instance = null; } } }