예제 #1
0
		public static void Run()
		{
			Log.Config.SetOutputFormat(LogOutputs.Console, "{Level,8} - {Message}");
			Log.Config.Level = LogLevels.Verbose;
			Log.Config.Output |= LogOutputs.Console;

			CmdLineService svc = new CmdLineService();
			svc.OnStart(new string[0]);
			try
			{
				Console.WriteLine("Press [Enter] to quit...");
				Console.ReadLine();
			}
			finally
			{
				svc.OnStop();
			}
		}
        public static void Run()
        {
            Log.Config.SetOutputFormat(LogOutputs.Console, "{Level,8} - {Message}");
            Log.Config.Level   = LogLevels.Verbose;
            Log.Config.Output |= LogOutputs.Console;

            CmdLineService svc = new CmdLineService();

            svc.OnStart(new string[0]);
            try
            {
                Console.WriteLine("Press [Enter] to quit...");
                Console.ReadLine();
            }
            finally
            {
                svc.OnStop();
            }
        }
예제 #3
0
 private void AddServices()
 {
     //TODO: add services provided by the Module. See: Add or AddNew method in WorkItem.Services collection or
     //		See: ms-help://MS.VSCC.v80/MS.VSIPCC.v80/ms.practices.2005Nov.cab/CAB/html/03-020-Adding%20Services.htm
     CmdLine = WorkItem.Services.AddNew<CmdLineService>();
 }