public static TrainLogger GetTrainLogger() { if(isCreate) return logger; else { logger = new TrainLogger(); return logger; } }
/// <summary> /// Освобождает внутренний объект TrainLogger. /// </summary> public void Dispose() { server.Disconnect(); logger = null; isCreate = false; }