EgonMilanVotrubec

Server/Startup.cs

Nov 28th, 2018
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.82 KB | None | 0 0
  1. using Microsoft.AspNetCore.Builder;
  2. using Microsoft.AspNetCore.Hosting;
  3. using Microsoft.Extensions.DependencyInjection;
  4.  
  5. namespace Server
  6. {
  7.     public class Startup
  8.     {
  9.         // This method gets called by the runtime. Use this method to add services to the container.
  10.         // For more information on how to configure your application, visit https://go.microsoft.com/fwlink/?LinkID=398940
  11.         public void ConfigureServices ( IServiceCollection services )
  12.         {
  13.             services.AddMvc ( );
  14.         }
  15.  
  16.         // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
  17.         public void Configure ( IApplicationBuilder app, IHostingEnvironment env )
  18.         {
  19.             app.UseAuthentication ( );
  20.             app.UseMvcWithDefaultRoute ( );
  21.         }
  22.     }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment