Ejemplo n.º 1
0
 public static void UseMembershipAdminUser(this IAppBuilder appBuilder, AdminUser adminUser)
 {
     appBuilder.Use(typeof(MembershipAdminUserMiddleware), adminUser);
 }
Ejemplo n.º 2
0
 public MembershipAdminUserMiddleware(AppFunc next, AdminUser adminUser)
 {
     _next       = next;
     _adminUser  = adminUser;
     _createUser = new Lazy <bool>(HasUserAlreadyExisted);
 }