public override string ToString() { var sb = new StringBuilder(); sb.AppendFormat(@"ID与名称:{0} {1} 物理目录:{2} 绑定域名:{3} 程序池名:{4} 站点状态:{5} 日志目录:{6} 连接超时:{7}秒 定时回收:{8} 预加载:{9} ", Id, Name, Dir, Bindings, PoolName, StateText, LogDir, ConnectionTimeOut.ToString(), GcTimeStr, Preload ? "启用" : "禁用"); return(sb.ToString()); }
// Event raiser protected virtual void OnConnectionTimeOut() { ConnectionTimeOut?.Invoke(this, EventArgs.Empty); }