CCNet.SourceNotifier.Program.Run C# (CSharp) Method

Run() private method

Instance entry point.
private Run ( Arguments arguments ) : int
arguments Arguments
return 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;
		}