BoxedIce.ServerDensity.Agent.Agent.Run C# (CSharp) Метод

Run() публичный Метод

Runs the agent.
public Run ( ) : void
Результат void
        public void Run()
        {
            _thread = new Thread(new ThreadStart(Start));
            _thread.Start();
            Log.Info("Thread started");
        }

Usage Example

Пример #1
0
        /// <summary>
        /// Main method; used when running the agent as a standalone console EXE.
        /// </summary>
        public static void Main()
        {
            var config = (AgentConfigurationSection)ConfigurationManager.GetSection("agent");
            var agent  = new Agent(config);

            agent.Run();
            Console.ReadLine();
            agent.Stop();
        }
All Usage Examples Of BoxedIce.ServerDensity.Agent.Agent::Run