public OnUserPermissionImp(IAppUser user, IPermissionStore permissionStore, IResourcePermissionGroupMapper secProv)
        {
            if (user == null)
            {
                throw new ArgumentNullException(nameof(user));
            }
            if (permissionStore == null)
            {
                throw new ArgumentNullException(nameof(permissionStore));
            }
            if (secProv == null)
            {
                throw new ArgumentNullException(nameof(secProv));
            }

            this.user            = user;
            this.permissionStore = permissionStore;
            this.secProv         = secProv;
        }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PermissionBuilder" /> class.
 /// </summary>
 /// <param name="permissionStore">The permission store.</param>
 /// <param name="secProv">The sec prov.</param>
 public PermissionBuilder(IPermissionStore permissionStore, IResourcePermissionGroupMapper secProv)
 {
     this.permissionStore = permissionStore;
     this.secProv         = secProv;
 }