コード例 #1
0
ファイル: BbsPostAction.cs プロジェクト: bakera/Hatomaru.dll
// コンストラクタ
		public BbsPostAction(HatomaruXml model, AbsPath path, HttpRequest req) : base(model, path, req){
			string[] fragments = path.GetFragments(BasePath);
			if(model is HatomaruBbs){
				if(fragments.Length > 1 && fragments[0].Equals(BbsViewArticle.Id)){
					int articleId = fragments[1].ToInt32();
					myTargetArticle = Bbs.GetArticle(articleId);
				}
			} else {
				myTargetArticle = new Article();
				myTargetArticle.CommentTo = path.RemoveLast(CommentPath);
			}
			myResponse = new NoCacheResponse(Model, path);
			GetHtml();
		}
コード例 #2
0
// コンストラクタ

		public CacheViewerAction(CacheViewer model, AbsPath path) : base(model, path){
			myResponse = new NoCacheResponse(Model, path);
			GetHtml();
		}