Beispiel #1
0
 public AspnetIdentityAdminUserMiddleware(AppFunc next, AdminUser adminUser)
 {
     _next       = next;
     _adminUser  = adminUser;
     _createUser = new Lazy <bool>(HasUserAlreadyExisted);
 }
 public static void UseAspnetIdentityAdminUser(this IAppBuilder appBuilder, AdminUser adminUser)
 {
     appBuilder.Use(typeof(AspnetIdentityAdminUserMiddleware), adminUser);
 }