public static void DropContext() { if (ctx != null) { ctx = null; SessionInfo.UpdateToNewCtx(); } }
public static StatsTrackingDbCtx Get() { if (ctx == null) { if (sharedClient == null) { throw new Exception(); } ctx = new StatsTrackingDbCtx(Discussions.ConfigManager.ConnStr, sharedClient); } return(ctx); }