// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory) { loggerFactory.AddConsole(Configuration.GetSection("Logging")); loggerFactory.AddDebug(); if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); app.UseBrowserLink(); } else { app.UseExceptionHandler("/Home/Error"); } app.UseStaticFiles(); app.UseMvc(routes => { routes.MapRoute( name: "default", template: "{controller=Home}/{action=Index}/{id?}"); }); OneTrueProxy.Credentials(new Uri("http://localhost:50473/"), "5fb563d2b41144c0996b768064bdc5d1", "de7ff5583e8945ddb781c1f0662a2966"); }
static void Main(string[] args) { var url = new Uri("http://localhost:50473/"); OneTrueProxy.Credentials(url, "5fb563d2b41144c0996b768064bdc5d1", "de7ff5583e8945ddb781c1f0662a2966"); try { throw new InvalidOperationException("ReportGenerate OneTrueError.Client.SysCore.Demo"); } catch (Exception ex) { var dto = OneTrueProxy.GenerateUploadReport(ex); UploadScreenshots(dto.ReportId); } }