资源简介
主要核心功能是:多人语音、多人视频、公共电子白板、会议房间管理。
代码片段和文件信息
using ESPlus.Advanced;
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using ESBasic;
using ESBasic.Loggers;
namespace ESframework.Boost
{
public class DignosticLogger : IDisposable
{
private IDiagnosticsViewer diagnosticsViewer;
private IAgileLogger agileLogger;
private int spanInSecs = 30;
private volatile bool stop = false;
public DignosticLogger(IDiagnosticsViewer viewer string logFilePath int logSpanInSecs)
{
this.diagnosticsViewer = viewer;
this.agileLogger = new FileAgileLogger(logFilePath);
this.spanInSecs = logSpanInSecs;
if (this.diagnosticsViewer != null)
{
CbGeneric cb = new CbGeneric(this.LogThread);
cb.BeginInvoke(null null);
}
}
private void LogThread()
{
int span = this.spanInSecs * 1000;
while (!this.stop)
{
System.Threading.Thread.Sleep(span);
this.Log();
}
}
private void Log()
{
try
{
List stats = this.diagnosticsViewer.GetCustomizeInfoStatistics();
ThreadPoolInfo tpi = this.diagnosticsViewer.GetThreadPoolInfo();
List uncommittedInfos = this.diagnosticsViewer.GetUncommittedCustomizeInfos();
this.agileLogger.LogWithTime(string.Format(“线程情况:WorkThreadCount={0}/{1} IocpThreadCount={2}/{3}“ tpi.AvailableWorkThreadCount tpi.MaxWorkThreadCount tpi.AvailableIocpThreadCount tpi.MaxIocpThreadCount));
if (stats.Count > 0)
{
this.agileLogger.LogWithTime(“历史记录:“);
foreach (InfoHandleRecordStatistics stat in stats)
{
this.agileLogger.LogWithTime(string.Format(“InformationType={0} Informationstyle={1} CallCount={2} ExceptionCount={3}“ stat.InformationType stat.Informationstyle stat.CallCount stat.ExceptionCount));
foreach (InfoHandleRecord rcd in stat.LastRecords)
{
this.agileLogger.LogWithTime(string.Format(“ ID={0} StartTime={1} TimeSpent={2}“ rcd.ID rcd.StartTime rcd.TimeSpent));
}
}
}
if (uncommittedInfos.Count > 0)
{
this.agileLogger.LogWithTime(“正在处理中的消息:“);
foreach (InfoHandleRecord record in uncommittedInfos)
{
this.agileLogger.LogWithTime(string.Format(“ID={0} InformationType={1} Infostyle={2} StartTime={3}“ record.ID record.InformationType record.Informationstyle record.StartTime));
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2015-05-12 15:34 GGMeeting\
目录 0 2015-04-29 16:44 GGMeeting\Dlls\
文件 88064 2015-02-04 11:45 GGMeeting\Dlls\AudioEngineCore.dll
文件 121344 2012-04-20 08:43 GGMeeting\Dlls\dxba
文件 397824 2015-03-23 10:20 GGMeeting\Dlls\ESBasic.dll
文件 200798 2015-03-23 10:20 GGMeeting\Dlls\ESBasic.xm
文件 1081344 2015-05-09 09:17 GGMeeting\Dlls\ESfr
文件 322827 2015-03-23 15:49 GGMeeting\Dlls\ESfr
文件 1683968 2015-04-24 14:25 GGMeeting\Dlls\OMCS.dll
文件 672177 2015-04-25 08:48 GGMeeting\Dlls\OMCS.xm
文件 385024 2015-03-23 10:23 GGMeeting\Dlls\Paintfr
文件 659456 2014-10-13 14:02 GGMeeting\Dlls\VideoEngineCore.dll
目录 0 2015-05-11 11:39 GGMeeting\ESfr
目录 0 2015-05-11 11:39 GGMeeting\ESfr
目录 0 2015-05-11 16:21 GGMeeting\ESfr
文件 1005056 2014-12-22 10:21 GGMeeting\ESfr
文件 397824 2015-03-23 10:20 GGMeeting\ESfr
文件 200798 2015-03-23 10:20 GGMeeting\ESfr
文件 391168 2015-05-11 16:21 GGMeeting\ESfr
文件 536064 2015-05-11 16:21 GGMeeting\ESfr
文件 1081344 2015-05-09 09:17 GGMeeting\ESfr
文件 322827 2015-03-23 15:49 GGMeeting\ESfr
目录 0 2015-04-08 11:30 GGMeeting\ESfr
目录 0 2015-05-11 11:39 GGMeeting\ESfr
文件 8786 2015-04-08 11:33 GGMeeting\ESfr
文件 927 2015-04-08 11:33 GGMeeting\ESfr
目录 0 2015-05-11 11:39 GGMeeting\ESfr
文件 35468 2015-04-08 11:49 GGMeeting\ESfr
文件 7021 2015-04-08 11:48 GGMeeting\ESfr
文件 6114 2015-04-08 11:49 GGMeeting\ESfr
文件 5998 2015-04-08 11:48 GGMeeting\ESfr
............此处省略618个文件信息
评论
共有 条评论