protected override void OnStart(string[] args)
 {
     base.OnStart(args);
     _pluginManager.Log("Connecting...");
     _pluginManager.Connect();
     _pluginManager.Log("... ok, we're good to go.");
 }
예제 #2
0
        protected override void OnStart(string[] args)
        {
            // TODO: Add code here to start your service.
            RaceTimeACPlugin raceTimePlugin = new RaceTimeACPlugin();

            AcServerPluginManager pluginManager = new AcServerPluginManager();

            pluginManager.LoadInfoFromServerConfig();
            pluginManager.AddPlugin(raceTimePlugin);
            pluginManager.LoadPluginsFromAppConfig();
            pluginManager.Connect();

            parser           = new AssettoCorsaFileParser(raceTimePlugin);
            parser.FileAlive = true;
            Thread thread = new Thread(new ParameterizedThreadStart(StartFileParser));

            thread.Start(parser);
        }
예제 #3
0
        static void Main(string[] args)
        {
            RaceTimeACPlugin raceTimePlugin = new RaceTimeACPlugin();

            AcServerPluginManager pluginManager = new AcServerPluginManager();

            pluginManager.LoadInfoFromServerConfig();
            pluginManager.AddPlugin(raceTimePlugin);
            pluginManager.LoadPluginsFromAppConfig();
            pluginManager.Connect();

            var parser = new AssettoCorsaFileParser(raceTimePlugin);

            parser.FileAlive = true;
            Thread thread = new Thread(new ParameterizedThreadStart(StartFileParser));

            thread.Start(parser);

            Console.ReadLine();
            parser.FileAlive = false;
            Console.ReadLine();
        }