public HubAppApi ( IAppApiUser user, IServiceProvider services ) : base ( new AppApi ( HubInfo.AppKey, user, ResourceAccess.AllowAuthenticated() .WithAllowed(HubRoles.Instance.Admin) ), services ) { auth(services); permanentLog(services); appList(services); appInquiry(services); appRegistration(services); appPublish(services); version(services); resourceGroup(services); resource(services); modCategory(services); userList(services); userInquiry(services); appUser(services); appUserMaintenance(services); userMaintenance(services); }
partial void permanentLog(IServiceProvider services) { PermanentLog = new PermanentLogGroup ( source.AddGroup(nameof(PermanentLog), ResourceAccess.AllowAuthenticated()), new PermanentLogGroupActionFactory(services) ); }
partial void appList(IServiceProvider services) { Apps = new AppListGroup ( source.AddGroup(nameof(Apps), ResourceAccess.AllowAuthenticated()), new AppListActionFactory(services) ); }
protected WebAppApiWrapper(AppApi source, IServiceProvider sp) : base(source) { User = new UserGroup ( source.AddGroup ( nameof(User), ModifierCategoryName.Default, ResourceAccess.AllowAuthenticated() ) ); UserCache = new UserCacheGroup ( source.AddGroup ( nameof(UserCache), ModifierCategoryName.Default, ResourceAccess.AllowAuthenticated() .WithAllowed(AppRoleName.ManageUserCache) ), sp ); }
protected override IAppApi _Create(IAppApiUser user) => new FakeAppApi(user, ResourceAccess.AllowAuthenticated(), sp);