コード例 #1
0
        public override void ObserveActions()
        {
            Admin.SettingController sc = new wojilu.Web.Controller.Content.Admin.SettingController();
            observe( sc.Save );

            //---------------------------------------------------------

            Admin.PostController post = new wojilu.Web.Controller.Content.Admin.PostController();
            observe( post.Delete );
            observe( post.DeleteTrue );
            observe( post.SaveAdmin );
            observe( post.Restore );

            //---------------------------------------------------------

            Admin.Section.ListController list = new wojilu.Web.Controller.Content.Admin.Section.ListController();
            //observe( list.Create );
            //observe( list.Update );
            observe( list.Delete );

            Admin.Section.TalkController talk = new wojilu.Web.Controller.Content.Admin.Section.TalkController();
            observe( talk.Create );
            observe( talk.Update );
            observe( talk.Delete );

            Admin.Section.TextController txt = new wojilu.Web.Controller.Content.Admin.Section.TextController();
            observe( txt.Create );
            observe( txt.Update );
            observe( txt.Delete );

            Admin.Section.VideoController video = new wojilu.Web.Controller.Content.Admin.Section.VideoController();
            observe( video.Create );
            observe( video.Update );
            observe( video.Delete );

            Admin.Section.VideoShowController vshow = new wojilu.Web.Controller.Content.Admin.Section.VideoShowController();
            observe( vshow.Create );
            observe( vshow.Update );
            observe( vshow.Delete );

            Admin.Section.ImgController img = new wojilu.Web.Controller.Content.Admin.Section.ImgController();
            observe( img.CreateListInfo );
            observe( img.CreateImgList );
            observe( img.SetLogo );
            observe( img.UpdateListInfo );
            observe( img.Delete );
            observe( img.DeleteImg );

            Admin.Section.PollController poll = new wojilu.Web.Controller.Content.Admin.Section.PollController();
            observe( poll.Create );
            observe( poll.Delete );

            AdController ad = new AdController();
            observe( ad.Create );
            observe( ad.Update );
            observe( ad.Delete );
            observe( ad.Start );
            observe( ad.Stop );
        }
コード例 #2
0
ファイル: ForumIndexCache.cs プロジェクト: robin88/wojilu
        public override void ObserveActions()
        {
            observe( new RegisterController().SaveReg );

            observe( new Users.TopicController().Create );
            observe( new Users.PostController().Create );
            observe( new Users.PollController().Create );

            observe( new Edits.TopicController().Update );
            observe( new Edits.PostController().Update );

            Moderators.TopicSaveController mt = new wojilu.Web.Controller.Forum.Moderators.TopicSaveController();
            observe( mt.Delete );

            Moderators.PostSaveController mp = new wojilu.Web.Controller.Forum.Moderators.PostSaveController();
            observe( mp.DeletePost );
            observe( mp.DeleteTopic );

            Admin.ForumController f = new wojilu.Web.Controller.Forum.Admin.ForumController();
            observe( f.SaveNotice );
            observe( f.SaveBoard );
            observe( f.SaveCategory );
            observe( f.UpdateBoard );
            observe( f.UpdateCategory );
            observe( f.DeleteBoard );
            observe( f.DeleteCategory );
            observe( f.AdminTopicTrashList );
            observe( f.AdminPostTrashList );
            observe( f.SaveCombine );

            //-------------------------------------------------------------
            observe( new Admin.SettingController().Save );

            Admin.ForumLinkController lnk = new wojilu.Web.Controller.Forum.Admin.ForumLinkController();
            observe( lnk.Create );
            observe( lnk.Update );
            observe( lnk.Delete );
            observe( lnk.SaveSort );

            Admin.PickedImgController img = new wojilu.Web.Controller.Forum.Admin.PickedImgController();
            observe( img.Create );
            observe( img.Update );
            observe( img.Delete );

            Admin.ModeratorController md = new wojilu.Web.Controller.Forum.Admin.ModeratorController();
            observe( md.Create );
            observe( md.Delete );

            AdController ad = new AdController();
            observe( ad.Create );
            observe( ad.Update );
            observe( ad.Delete );
            observe( ad.Start );
            observe( ad.Stop );
        }
コード例 #3
0
        public override void ObserveActions() {

            AppBaseController ab = new AppBaseController();
            observe( ab.Start );
            observe( ab.Stop );
            observe( ab.Create );
            observe( ab.Update );
            observe( ab.Delete );

            MenuBaseController mb = new MenuBaseController();
            observe( mb.SortMenu );
            observe( mb.Create );
            observe( mb.SaveSubMenu );
            observe( mb.Update );
            observe( mb.Delete );

            SiteConfigController sc = new SiteConfigController();
            observe( sc.BaseSave );
            observe( sc.LogoSave );
            observe( sc.DeleteLogo );

            FooterMenuController fm = new FooterMenuController();
            observe( fm.SaveSort );
            observe( fm.Create );
            observe( fm.Update );
            observe( fm.Delete );

            observe( new wojilu.Web.Controller.Admin.Credits.CreditController().UpdateKeyRule );
            observe( new wojilu.Web.Controller.Admin.Credits.CurrencyController().UpdateKeyCurrency );

            AdController ad = new AdController();
            observe( ad.Create );
            observe( ad.Update );
            observe( ad.Delete );
            observe( ad.Start );
            observe( ad.Stop );

        }