graphfactory.cs

来自「《精通ASP.NET2.0网络应用系统开发》书中的源码」· CS 代码 · 共 45 行

CS
45
字号
using System;
using System.Diagnostics;
using System.Web;
using webvisitStatistic.Reporter.Graph;

namespace webvisitStatistic.Reporter
{
	/// <summary>
	/// GraphFactory 的摘要说明。
	/// </summary>
	public class GraphFactory : System.Web.IHttpHandler
	{
		#region IHttpHandler
		/// <summary>
		/// document.write("");
		/// </summary>
		/// <param name="context"></param>
		public void ProcessRequest(HttpContext context) 
		{
			HttpRequest		request = context.Request;
			HttpResponse	response= context.Response;
			
			IGraphBuilder gb = GetGraphBuilder(request);
		}		
		
		public bool IsReusable 
		{
			// To enable pooling, return true here.
			// This keeps the handler in memory.
			get { return true; }  
		}
		#endregion
		
		IGraphBuilder GetGraphBuilder(HttpRequest request)
		{
			HitsOfUrlInHour gb = new HitsOfUrlInHour();
//			Debug.Assert(request);
			//gb.Attributes[] = ;

			return gb;
		}
		
	}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?