BoxedIce.ServerDensity.Agent.Agent.Main C# (CSharp) Méthode

Main() public static méthode

Main method; used when running the agent as a standalone console EXE.
public static Main ( ) : void
Résultat void
        public static void Main()
        {
            var config = (AgentConfigurationSection)ConfigurationManager.GetSection("agent");
            var agent = new Agent(config);

            agent.Run();
            Console.ReadLine();
            agent.Stop();
        }