Example #1
0
        public static UmbracoMembersRoleManager <T> Create(IdentityFactoryOptions <UmbracoMembersRoleManager <T> > options,
                                                           IMemberGroupService memberGroupService)
        {
            var roleStore = new UmbracoMembersRoleStore <T>(memberGroupService);

            return(Create(options, roleStore));
        }
Example #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)));
 }
Example #3
0
 public static UmbracoMembersRoleManager <T> Create(IdentityFactoryOptions <UmbracoMembersRoleManager <T> > options,
                                                    UmbracoMembersRoleStore <T> roleStore)
 {
     return(new UmbracoMembersRoleManager <T>(roleStore));
 }
Example #4
0
 public UmbracoMembersRoleManager(UmbracoMembersRoleStore <T> store)
     : base(store)
 {
 }