public RedisSetting() { Host = DefaultConfig.RedisHost; ReadOnlyHost = DefaultConfig.ReadOnlyHost; Db = DefaultConfig.RedisDb; MaxReadPoolSize = DefaultConfig.MaxReadPoolSize; MaxWritePoolSize = DefaultConfig.MaxWritePoolSize; ConnectTimeout = DefaultConfig.ConnectTimeout; PoolTimeOut = DefaultConfig.PoolTimeOut; ConnectionString = new ConnectionString(); }
public ConnectionString CopyObject() { var conn = new ConnectionString(); conn.Name = Name; conn.ProviderName = ProviderName; conn.DataSource = DataSource; conn.Database = Database; conn.Charset = Charset; conn.Extend = Extend; conn.Uid = Uid; conn.Pwd = Pwd; return conn; }
public GameSetting() { IsModify = true; Redis = new RedisSetting(); PayCenter = new ConnectionString() { Name = DbPaycenter, Database = "PayDB" }; SnsCenter = new ConnectionString() { Name = DbSnscenter, Database = "SnsCenter" }; Connections = new List<ConnectionString>(); GameCode = DefaultConfig.GameCode; GameServerCode = DefaultConfig.ServerCode; SocketPort = DefaultConfig.SocketPort; GameName = DefaultConfig.GameName; GameSignKey = DefaultConfig.GameSignKey; HttpHost = DefaultConfig.HttpHost; HttpPort = DefaultConfig.HttpPort; HttpName = DefaultConfig.HttpName; HttpTimeout = DefaultConfig.HttpTimeout; SocketMaxConnections = DefaultConfig.SocketMaxConnections; SocketBacklog = DefaultConfig.SocketBacklog; SocketMaxAcceptOps = DefaultConfig.SocketMaxAcceptOps; SocketBufferSize = DefaultConfig.SocketBufferSize; ActionEnableGZip = DefaultConfig.ActionEnableGZip; ActionGZipOutLength = DefaultConfig.ActionGZipOutLength; ActionTypeName = DefaultConfig.ActionTypeName; ActionAssemblyName = DefaultConfig.ActionAssemblyName; ActionScriptTypeName = DefaultConfig.ActionScriptTypeName; PythonDisable = DefaultConfig.PythonDisable; ScriptIsDebug = DefaultConfig.ScriptIsDebug; LuaDisable = DefaultConfig.LuaDisable; //Scut lib 6.1.5.6 modify ScriptRelativePath = "Script"; CSharpRootPath = "CsScript"; LuaRootPath = DefaultConfig.LuaRootPath; PythonRootPath = DefaultConfig.PythonRootPath; ScriptMainClass = DefaultConfig.ScriptMainClass; ScriptMainTypeName = DefaultConfig.ScriptMainTypeName; ScriptAsmReferences = new string[0]; ScriptSysAsmReferences = new string[0]; CacheGlobalPeriod = DefaultConfig.CacheGlobalPeriod; CacheUserPeriod = DefaultConfig.CacheUserPeriod; CacheUpdateDbInterval = DefaultConfig.CacheUpdateDbInterval; CacheUpdateInterval = DefaultConfig.CacheUpdateInterval; CacheExpiredInterval = DefaultConfig.CacheExpiredInterval; CacheEnableWritetoDb = DefaultConfig.CacheEnableWritetoDb; DataSyncQueueNum = DefaultConfig.DataSyncQueueNum; SqlWaitSyncQueueNum = DefaultConfig.SqlWaitSyncQueueNum; SqlSyncQueueNum = DefaultConfig.SqlSyncQueueNum; LogTableNameFormat = DefaultConfig.LogTableNameFormat; LogPriorBuildMonth = DefaultConfig.LogPriorBuildMonth; PublishType = DefaultConfig.DefPublishType; EnableGm = DefaultConfig.EnableGm; SnsAccountPrefixChar = DefaultConfig.SnsAccountPrefixChar; LanguageTypeName = DefaultConfig.LanguageTypeName; ProductDesEnKey = DefaultConfig.ProductDesEnKey; ClientDesDeKey = DefaultConfig.ClientDesDeKey; }