Execute() 공개 메소드

public Execute ( string args, IWorker worker ) : void
args string
worker IWorker
리턴 void
예제 #1
0
        static void Main(string[] args)
        {
            IWorker worker = new ConsoleWorker();

            try
            {
                var app = new Application();
                app.Execute(args, worker);
                worker.WriteLine("Command successfully executed.");
            }
            catch (Exception e)
            {
                worker.WriteLine(e.Message);
            }
        }
예제 #2
0
파일: Program.cs 프로젝트: taler0n/Students
        static void Main(string[] args)
        {
            IWorker worker = new ConsoleWorker();

            try
            {
                var app = new Application();
                app.Execute(args, worker);
                worker.WriteLine("Command successfully executed.");
            }
            catch (Exception e)
            {
                worker.WriteLine(e.Message);
            }
        }