public static void AutoexecStartup() { var args = new RealmServerCmdArgs(null, false, null); var file = AutoExecDir + AutoExecStartupFile; if (File.Exists(file)) { // execute auto exec on separate thread ThreadPool.QueueUserWorkItem(stateInfo => Instance.ExecFile(file, args)); } }
public static void AutoexecStartup() { RealmServerCmdArgs args = new RealmServerCmdArgs(null, false, null); string file = AutoExecDir + AutoExecStartupFile; if (!File.Exists(file)) { return; } ThreadPool.QueueUserWorkItem( stateInfo => Instance.ExecFile(file, args)); }