資源簡介
主要核心功能是:多人語音、多人視頻、公共電子白板、會議房間管理。
代碼片段和文件信息
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個文件信息
評論
共有 條評論