using System; using System.Configuration; namespace TGS.Server { /// /// Used to migrate old config settings /// class DeprecatedInstanceConfig : InstanceConfig { /// /// The default directory /// const string DefaultInstallationPath = "C:\\TGSTATION-SERVER-3"; /// /// Construct a . Used by the deserializer /// [Obsolete("This method is for use by the deserializer only.", true)] public DeprecatedInstanceConfig() : base(DefaultInstallationPath) { } /// /// Construct a for a at /// /// The path to the public DeprecatedInstanceConfig(string path) : base(path) { } /// /// Migrates the from to /// public void MigrateToCurrentVersion() { for (; Version < CurrentVersion; ++Version) Migrate(); } /// /// Migrates the from to + 1 /// void Migrate() { //Not needed so far } } }