CCNet.SourceNotifier.Program.Run C# (CSharp) 메소드

Run() 개인적인 메소드

Instance entry point.
private Run ( Arguments arguments ) : int
arguments Arguments
리턴 int
		private int Run(Arguments arguments)
		{
			switch (arguments.ConsoleCommandType)
			{
				case ConsoleCommandType.DisplayText:
					Display();
					break;
				case ConsoleCommandType.DisplayHtml:
					DisplayHtml();
					break;
				case ConsoleCommandType.ReportToMaster:
					ReportToMaster(arguments.MasterEmail);
					break;
				case ConsoleCommandType.ReportToUsers:
					ReportToUsers();
					break;
				default:
					throw new ApplicationException(
						string.Format(Resources.WrongCommandMessageFormat, arguments.ConsoleCommandType));
			}

			return 0;
		}