Example #1
0
 // This method gets called by the runtime. Use this method to add services to the container.
 public void ConfigureServices(IServiceCollection services)
 {
     FooConfiguration
     .ConfigureServices(services)
     .AddAuthentication()
     .AddJwtBearer();
 }
Example #2
0
 public void ConfigureServices(IServiceCollection services)
 {
     FooConfiguration.ConfigureServices(services)
     .AddDbContext <FooDbContext>(options =>
     {
         options.UseSqlServer(@"Server=LRUIZ-LAPTOP\SQLEXPRESS;Database=Foo;Integrated Security=true", sqlOptions =>
         {
             sqlOptions.MigrationsAssembly(typeof(Bar).Assembly.GetName().Name);
         });
     })
     .AddAuthentication(defaultScheme: "TestServer")
     .AddTestServerAuthentication();
 }
Example #3
0
 public void ConfigureServices(IServiceCollection services)
 {
     FooConfiguration.ConfigureServices(services);
 }
 public void ConfigureServices(IServiceCollection services)
 {
     FooConfiguration.ConfigureServices(services)
     .AddAuthentication(defaultScheme: "TestServer")
     .AddTestServerAuthentication();
 }