protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (_context != null)
         {
             _context.Dispose();
             _context = null;
         }
     }
 }
Beispiel #2
0
        public void Configure(IApplicationBuilder app, IDPUserContext iDPUserContext)
        {
            if (Environment.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();
                // app.UseDatabaseErrorPage();
            }

            //initiat Users Database context
            iDPUserContext.Database.Migrate();
            iDPUserContext.EnsureSeedDataForContext();

            app.UseStaticFiles();
            app.UseRouting();

            app.UseIdentityServer();
            app.UseAuthorization();

            app.UseEndpoints(endpoints =>
            {
                endpoints.MapDefaultControllerRoute();
            });
        }
 public IDPUserRepository(IDPUserContext context)
 {
     _context = context;
 }