Advertisement
Guest User

Untitled

a guest
Oct 17th, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Threading.Tasks;
  5. using Microsoft.AspNetCore.Builder;
  6. using Microsoft.AspNetCore.Hosting;
  7. using Microsoft.AspNetCore.Http;
  8. using Microsoft.Extensions.DependencyInjection;
  9.  
  10. namespace HelloCore
  11. {
  12. public class Startup
  13. {
  14. // This method gets called by the runtime. Use this method to add services to the container.
  15. // For more information on how to configure your application, visit https://go.microsoft.com/fwlink/?LinkID=398940
  16. public void ConfigureServices(IServiceCollection services)
  17. {
  18. }
  19.  
  20. // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
  21. public void Configure(IApplicationBuilder app, IHostingEnvironment env)
  22. {
  23. if (env.IsDevelopment())
  24. {
  25. app.UseDeveloperExceptionPage();
  26. }
  27.  
  28. app.Run(async (context) =>
  29. {
  30. await context.Response.WriteAsync("Hello World!");
  31. });
  32. }
  33. }
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement