static void Main(string[] args) { AcServerPluginManager pluginManager = null; try { pluginManager = new AcServerPluginManager(new FileLogWriter("log", "minoplugin.txt") { CopyToConsole = true, LogWithTimestamp = true, }) { AcServerKeepAliveIntervalSeconds = 60 }; pluginManager.LoadInfoFromServerConfig(); pluginManager.AddPlugin(new MinoratingPlugin()); pluginManager.LoadPluginsFromAppConfig(); DriverInfo.MsgCarUpdateCacheSize = 100; pluginManager.RunUntilAborted(); } catch (Exception ex) { Console.WriteLine(ex.Message); try { pluginManager.Log(ex); } catch (Exception) { } } }