using
System;
using
System.Collections.Generic;
using
System.Linq;
using
System.Web;
using
System.Timers;
/// <summary>
///Action 的摘要說(shuō)明
/// </summary>
public
static
class
TaskAction
{
private
static
string
content =
""
;
/// <summary>
/// 輸出信息存儲(chǔ)的地方.
/// </summary>
public
static
string
Content
{
get
{
return
TaskAction.content; }
set
{ TaskAction.content +=
"<div>"
+ value+
"</div>"
; }
}
/// <summary>
/// 定時(shí)器委托任務(wù) 調(diào)用的方法
/// </summary>
/// <param name="source"></param>
/// <param name="e"></param>
public
static
void
SetContent(
object
source, ElapsedEventArgs e)
{
Content = DateTime.Now.ToString(
"yyyy-MM-dd HH:mm:ss"
);
}
/// <summary>
/// 應(yīng)用池回收的時(shí)候調(diào)用的方法
/// </summary>
public
static
void
SetContent()
{
Content =
"END: "
+ DateTime.Now.ToString(
"yyyy-MM-dd HH:mm:ss"
);
}
}