Ejemplo n.º 1
0
        public static UmbracoMembersRoleManager <T> Create(IdentityFactoryOptions <UmbracoMembersRoleManager <T> > options,
                                                           IMemberGroupService memberGroupService)
        {
            var roleStore = new UmbracoMembersRoleStore <T>(memberGroupService);

            return(Create(options, roleStore));
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Configures the role manager for umbraco members.
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="app">The application.</param>
 /// <param name="customRoleStore">The custom role store.</param>
 public static void ConfigureRoleManagerForUmbracoMembers <T>(
     this IAppBuilder app,
     UmbracoMembersRoleStore <T> customRoleStore)
     where T : UmbracoIdentityRole, new()
 {
     //Configure Umbraco members role manager to be created per request
     app.CreatePerOwinContext <UmbracoMembersRoleManager <T> >(((o, c) => UmbracoMembersRoleManager <T> .Create(
                                                                    o,
                                                                    customRoleStore)));
 }
Ejemplo n.º 3
0
 public static UmbracoMembersRoleManager <T> Create(IdentityFactoryOptions <UmbracoMembersRoleManager <T> > options,
                                                    UmbracoMembersRoleStore <T> roleStore)
 {
     return(new UmbracoMembersRoleManager <T>(roleStore));
 }
Ejemplo n.º 4
0
 public UmbracoMembersRoleManager(UmbracoMembersRoleStore <T> store)
     : base(store)
 {
 }