您目前尚未登陆,请选择【登陆】或【注册
首页->博客论坛->LiveBlog v1.0测试版源码>>LiveBlog.Core/Search.cs>>源码在线查看
温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:LiveBlog v1.0测试版源码
当前文件:文件类型 LiveBlog/LiveBlog.Core/Search.cs打开代码结构图
普通视图
		            
1Using 14 15namespace LiveBlog.Core 16{ 17 /// <summary> 18 /// Searches the post collection and returns a result based on a search term. 19 /// <remarks>It is used for related posts and the in-site search feature.</remarks> 20 /// </summary> 21 public static class Search 22 { 23 24 static Search() 25 { 26 BuildCatalog(); 27 Post.Saved += new EventHandler<SavedEventArgs>(Post_Saved); 28 Page.Saved += new EventHandler<SavedEventArgs>(Page_Saved); 29 BlogSettings.Changed += delegate { BuildCatalog(); }; 30 Post.CommentAdded += new EventHandler<EventArgs>(Post_CommentAdded); 31 Post.CommentRemoved += delegate { BuildCatalog(); }; 32 Comment.Approved += new EventHandler<EventArgs>(Post_CommentAdded); 33 } 34 35 Event handlers 81 82 Search 164 165 Properties and private fields 173 174 BuildCatalog 273 274