public void Register <T>(string permissionSetName = DefaultPermissionSetName) { var type = typeof(T); const string defaultId = "Id"; if (!HasMember(type, defaultId)) { throw new RegisterException($"{type.FullName} has no member `Id`"); } AddKeyForType(type, defaultId); _permissionStore.Register <T>(permissionSetName); }