예제 #1
0
 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);
 }
예제 #2
0
 partial void permanentLog(IServiceProvider services)
 {
     PermanentLog = new PermanentLogGroup
                    (
         source.AddGroup(nameof(PermanentLog), ResourceAccess.AllowAuthenticated()),
         new PermanentLogGroupActionFactory(services)
                    );
 }
예제 #3
0
 partial void appList(IServiceProvider services)
 {
     Apps = new AppListGroup
            (
         source.AddGroup(nameof(Apps), ResourceAccess.AllowAuthenticated()),
         new AppListActionFactory(services)
            );
 }
예제 #4
0
 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);