public static void Main(string[] args) { Logger.Info("Program startup"); ConfigureCommandLIne(args); var exceptionlessConfiguration = new ExceptionlessConfig() { BaseUrl = System.Configuration.ConfigurationManager.AppSettings["exceptionless:BaseUrl"], AccountEmail = System.Configuration.ConfigurationManager.AppSettings["exceptionless:Username"], AccountPassword = System.Configuration.ConfigurationManager.AppSettings["exceptionless:Password"], OrganizationId = System.Configuration.ConfigurationManager.AppSettings["exceptionless:OrgId"] }; //identify what to do from the command line options var eProcessor = new ExceptionlessProcesser(exceptionlessConfiguration); //eProcessor.GetProjects(); eProcessor.CreateProject(new ProjectDto() { name = "test" }); Console.ReadLine(); }
public ExceptionlessProcesser(ExceptionlessConfig exceptionlessConfiguration) { Config = exceptionlessConfiguration; if (string.IsNullOrEmpty(AuthToken)) { Login(); } }