public AppRoleManager(IRoleStore <ApplicationRole> store,
                       IEnumerable <IRoleValidator <ApplicationRole> > roleValidators,
                       ILookupNormalizer keyNormalizer, IdentityErrorDescriber errors,
                       ILogger <RoleManager <ApplicationRole> > logger) :
     base(store, roleValidators, keyNormalizer, errors, logger)
 {
     _store = store as AppRoleStore ??
              throw new ArgumentException($"type {store.GetType()} was not an instance of {typeof(AppRoleStore)}. You must register this service first to use the app role manager.");
 }