public DirectorySender(IAgileLogger iagileLogger_0, IFilePackageHelper interface35_1, string string_4, string string_5, string string_6, ulong ulong_4, ulong ulong_5) { this.emptyAgileLogger_0 = (EmptyAgileLogger)iagileLogger_0; this.interface35_0 = interface35_1; DirectoryInfo info = new DirectoryInfo(string_4 + @"\"); this.string_0 = info.FullName; this.string_1 = string_5; this.string_2 = string_6; this.ulong_1 = ulong_4 - ulong_5; this.ulong_3 = ulong_5; this.ulong_0 = FileHelper.GetDirectorySize(this.string_0); if (cbFileTransCompleted_1 == null) { cbFileTransCompleted_1 = new CbFileTransCompleted(DirectorySender.smethod_0); } this.FileTransCompleted += cbFileTransCompleted_1; if (cbFileTransDisruptted_1 == null) { cbFileTransDisruptted_1 = new CbFileTransDisruptted(DirectorySender.smethod_1); } this.FileTransDisruptted += cbFileTransDisruptted_1; if (cbFileSendedProgress_1 == null) { cbFileSendedProgress_1 = new CbFileSendedProgress(DirectorySender.smethod_2); } this.FileTransProgress += cbFileSendedProgress_1; }
public ReliableUdpEngine(IPv6UdpClient class164_0, int int_2, IAgileLogger iagileLogger_0, Interface18 interface18_0, string string_1) { this.object_0 = 0; this.emptyAgileLogger_0 = new EmptyAgileLogger(); this.int_0 = 0x100000; this.int_1 = 100; this.eventSafeTrigger_0 = new EventSafeTrigger(new EmptyAgileLogger(), "NP0TGVBgJ9QwLAhYTKW.XpFDH2BqcL8UtxuLtNZ"); this.safeDictionary_0 = new SafeDictionary <IPEndPoint, Class116>(); this.safeDictionary_1 = new SafeDictionary <IPEndPoint, Class100>(); this.string_0 = ""; this.string_0 = string_1; this.object_1 = class164_0; this.object_1.DataReceived += new CbGeneric <IPEndPoint, byte[]>(this.udpClient_DataReceived); this.object_1.Initialize(); this.int_0 = int_2; this.int_1 = this.int_0 / 500; this.emptyAgileLogger_0 = iagileLogger_0 ?? new EmptyAgileLogger(); this.eventSafeTrigger_0.AgileLogger = this.emptyAgileLogger_0; this.class32_0 = interface18_0 ?? new Class32(); this.class32_0.SynAckReceived += new CbGeneric <IPEndPoint, string>(this.method_7); this.class32_0.FeedbackVacancyReceived += new CbGeneric <IPEndPoint, FeedbackVacancyBody>(this.method_6); this.class32_0.ExitReceived += new CbGeneric <IPEndPoint>(this.method_2); this.class32_0.PMTUTestAckReceived += new CbGeneric <IPEndPoint, string, ushort>(this.method_1); new CbGeneric(this.CircleQuickly).BeginInvoke(null, null); new CbGeneric(this.CircleQuickly2).BeginInvoke(null, null); }
public void method_5(IAgileLogger iagileLogger_0) { if (iagileLogger_0 != null) { this.emptyAgileLogger_0 = (EmptyAgileLogger)iagileLogger_0; } }
public MessageDispatcher(Interface32 interface32_1, IMessageForbidden interface39_0) { this.emptyAgileLogger_0 = new EmptyAgileLogger(); this.class97_0 = new MessageForbiddenHandler2(); this.interface32_0 = interface32_1; this.imethod_2(interface39_0); }
public UiSafeInvoker(Control ui, bool showMessageBoxOnException, bool beginInvoke, IAgileLogger logger) { this.control = ui; this.agileLogger = logger ?? new EmptyAgileLogger(); this.showMessageBox = showMessageBoxOnException; this.useBeginInvoke = beginInvoke; }
public void imethod_0(IAgileLogger iagileLogger_0) { if (iagileLogger_0 != null) { this.emptyAgileLogger_0 = iagileLogger_0 ?? new EmptyAgileLogger(); } }
public EventSafeTrigger(IAgileLogger logger, string publisherTypeFullName) { this.agileLogger = new EmptyAgileLogger(); this.publisherFullName = ""; this.agileLogger = logger; this.publisherFullName = publisherTypeFullName; }
public Class124(IAgileLogger iagileLogger_0, string string_1, Stream stream_1, ulong ulong_2) { this.emptyAgileLogger_0 = (EmptyAgileLogger)iagileLogger_0; this.string_0 = string_1; this.stream_0 = stream_1; this.ulong_1 = ulong_2; if (cbGeneric_1 == null) { cbGeneric_1 = new CbGeneric <string>(Class124.smethod_0); } this.FileTransCompleted += cbGeneric_1; if (cbFileTransDisruptted_1 == null) { cbFileTransDisruptted_1 = new CbFileTransDisruptted(Class124.smethod_1); } this.FileTransDisruptted += cbFileTransDisruptted_1; if (cbFileSendedProgress_1 == null) { cbFileSendedProgress_1 = new CbFileSendedProgress(Class124.smethod_2); } this.FileTransProgress += cbFileSendedProgress_1; if (ulong_2 == 0L) { this.stream_0.Flush(); this.stream_0.Close(); new CbGeneric(this.method_0).BeginInvoke(null, null); } }
public static void SpringEventSafelyAsyn(IAgileLogger agileLogger, string eventPath, Delegate theEvent) { if (theEvent != null) { new CbGeneric <IAgileLogger, string, Delegate>(EventHelper.SpringEventSafely).BeginInvoke(agileLogger, eventPath, theEvent, null, null); } }
public static void SpringEventSafelyAsyn <T1, T2, T3, T4>(IAgileLogger agileLogger, string eventPath, Delegate theEvent, T1 t1, T2 t2, T3 t3, T4 t4) { if (theEvent != null) { new CbGeneric <IAgileLogger, string, Delegate, T1, T2, T3, T4>(EventHelper.SpringEventSafely <T1, T2, T3, T4>).BeginInvoke(agileLogger, eventPath, theEvent, t1, t2, t3, t4, null, null); } }
public static void SpringEventSafely <T1>(IAgileLogger agileLogger, string eventPath, Delegate theEvent, T1 t1) { if (theEvent == null) { return; } foreach (var invocation in theEvent.GetInvocationList()) { try { var cb = (Action <T1>)invocation; cb(t1); } catch (Exception ee) { while (ee.InnerException != null) { ee = ee.InnerException; } agileLogger.Log(ee, string.Format("{0} On handle event [{1}].", ReflectionUtil.GetMethodFullName(invocation.Method), eventPath), ErrorLevel.Standard); } } }
public void SetAgileLogger(IAgileLogger iagileLogger_0) { if (iagileLogger_0 != null) { this.emptyAgileLogger_0 = (EmptyAgileLogger)iagileLogger_0; } }
public void SetAgileLogger(IAgileLogger iagileLogger_0) { if (iagileLogger_0 != null) { this.emptyAgileLogger_0 = (EmptyAgileLogger)iagileLogger_0; this.EodfwttmVK.AgileLogger = iagileLogger_0; } }
public void SetAgileLogger(IAgileLogger iagileLogger_0) { if (iagileLogger_0 != null) { this.emptyAgileLogger_0 = (EmptyAgileLogger)iagileLogger_0; this.eventSafeTrigger_0.AgileLogger = iagileLogger_0; } }
internal void WfJlzZyoUa(bool bool_1, IAgileLogger iagileLogger_1) { if (!bool_1) { this.iagileLogger_0 = iagileLogger_1; new CbGeneric(this.method_0).BeginInvoke(null, null); } }
public void method_2(IAgileLogger iagileLogger_0) { if (this.int_0 > 0) { base.DetectSpanInSecs = 1; base.Start(); } this.class162_0.method_1(iagileLogger_0); }
public static void SpringEventSafelyAsyn <T1, T2>(IAgileLogger agileLogger, string eventPath, Delegate theEvent, T1 t1, T2 t2) { if (theEvent == null) { return; } CbGeneric <IAgileLogger, string, Delegate, T1, T2> cb = new CbGeneric <IAgileLogger, string, Delegate, T1, T2>(EventHelper.SpringEventSafely <T1, T2>); cb.BeginInvoke(agileLogger, eventPath, theEvent, t1, t2, null, null); }
public static void SpringEventSafelyAsyn(IAgileLogger agileLogger, string eventPath, Delegate theEvent) { if (theEvent == null) { return; } var cb = new Action <IAgileLogger, string, Delegate>(SpringEventSafely); cb.BeginInvoke(agileLogger, eventPath, theEvent, null, null); }
public FileReceiver(IAgileLogger iagileLogger_0, string string_3, string string_4, ulong ulong_2, string string_5) { this.diYatLwGC = new EventSafeTrigger(new EmptyAgileLogger(), "XrZokLIgmVlcsHl3C7.nxZXDMlUfKsyJYxeVn"); this.emptyAgileLogger_0 = new EmptyAgileLogger(); this.ulong_0 = 0L; this.HtwoUmmJj = ""; this.object_0 = 0; this.int_0 = 0; this.byte_0 = 0; this.filePackage_0 = new FilePackage[0x100]; this.int_1 = 0; this.bool_0 = false; this.emptyAgileLogger_0 = (EmptyAgileLogger)iagileLogger_0; this.HtwoUmmJj = string_3; if (File.Exists(string_4)) { File.Delete(string_4); } this.string_0 = string_4; this.string_1 = string_4 + string_5; while (File.Exists(this.string_1)) { this.string_1 = this.string_1 + string_5; } this.string_2 = FileHelper.GetFileNameNoPath(string_4); this.fileStream_0 = new FileStream(this.string_1, FileMode.OpenOrCreate); this.ulong_1 = ulong_2; if (cbGeneric_1 == null) { cbGeneric_1 = new CbGeneric <string>(FileReceiver.smethod_0); } this.FileTransCompleted += cbGeneric_1; if (cbFileTransDisruptted_1 == null) { cbFileTransDisruptted_1 = new CbFileTransDisruptted(FileReceiver.smethod_1); } this.FileTransDisruptted += cbFileTransDisruptted_1; if (cbFileSendedProgress_1 == null) { cbFileSendedProgress_1 = new CbFileSendedProgress(FileReceiver.nAuyhuNgq); } this.FileTransProgress += cbFileSendedProgress_1; if (ulong_2 == 0L) { this.fileStream_0.Flush(); this.fileStream_0.Close(); if (!File.Exists(this.string_0)) { File.Move(this.string_1, this.string_0); } new CbGeneric(this.method_0).BeginInvoke(null, null); } }
public static void SpringEventSafelyAsyn <T1, T2, T3, T4>(IAgileLogger agileLogger, string eventPath, Delegate theEvent, T1 t1, T2 t2, T3 t3, T4 t4) { if (theEvent == null) { return; } var cb = new Action <IAgileLogger, string, Delegate, T1, T2, T3, T4>(SpringEventSafely); cb.BeginInvoke(agileLogger, eventPath, theEvent, t1, t2, t3, t4, null, null); }
/// <summary> /// /// </summary> static LoggerManager() { if (logger == null) { string logFilePath = Path.Combine(ConfigurationHelper.AppSettingPath("LogFile"), "Logs"); if (!Directory.Exists(logFilePath)) { Directory.CreateDirectory(logFilePath); } logger = new FileAgileLogger(Path.Combine(logFilePath, DateTime.Now.ToString("yyyy-MM-dd") + ".log")); } }
protected abstract List <TUser> DoGetAllContacts(); //好友,包括组友 #region Ctor public virtual void Initialize(string curUserID, string persistencePath, string _companyGroupID, IAgileLogger _logger) { this.GroupChanged += delegate { }; this.FriendInfoChanged += delegate { }; this.FriendStatusChanged += delegate { }; this.FriendRemoved += delegate { }; this.FriendRTDataRefreshCompleted += new CbGeneric(GlobalUserCache_FriendRTDataRefreshCompleted); this.companyGroupID = _companyGroupID; this.logger = _logger; //自己的信息始终加载最新的 this.currentUser = this.DoGetUser(curUserID); this.userManager.Add(this.currentUser.ID, this.currentUser); this.persistenceFilePath = persistencePath; this.originUserLocalPersistence = UserLocalPersistence <TUser, TGroup> .Load(this.persistenceFilePath);//返回null,表示该登录帐号还没有任何缓存 if (this.originUserLocalPersistence != null && this.originUserLocalPersistence.FriendList != null) { foreach (TUser user in this.originUserLocalPersistence.FriendList) { if (user.ID == null) { continue; } if (user.ID != this.currentUser.ID) { user.UserStatus = UserStatus.OffLine; this.userManager.Add(user.ID, user); } } foreach (TGroup group in this.originUserLocalPersistence.GroupList) { if (this.currentUser.GroupList.Contains(group.ID)) { this.groupManager.Add(group.ID, group); } #if Org if (this.currentUser.IsInOrg) { if (this.IsCompanyGroupID(group.ID)) { this.groupManager.Add(group.ID, group); } } #endif } } }
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); } }
/// <summary> /// 初始化"rude"多媒体管理器。 /// </summary> /// <param name="rudeManager">未调用Initialize方法的多媒体管理器。</param> /// <param name="agileLogger">日志记录器</param> public void Initialize(IMultimediaManager rudeManager, OmcsLoginParas paras, IAgileLogger agileLogger, MultimediaManagerMode mode) { this.omcsLoginParas = paras; this.multimediaManager = rudeManager; this.multimediaManagerMode = mode; this.logger = agileLogger; this.multimediaManager.DeviceDisconnected += new CbGeneric <string, OMCS.MultimediaDeviceType>(multimediaManager_DeviceDisconnected); this.multimediaManager.ConnectorDisconnected += new CbGeneric <IMultimediaConnector, ConnectorDisconnectedType>(multimediaManager_ConnectorDisconnected); if (this.multimediaManagerMode == MultimediaManagerMode.Common) { string msg = null; this.Prepare(true, out msg); } }
public P2PClass(Interface26 interface26_0, P2PSessionMessageTypeRoom p2PSessionMessageTypeRoom_1, IAgileLogger iagileLogger_0) { if (cbGeneric_2 == null) { cbGeneric_2 = new CbGeneric <P2PChannelState>(P2PClass.smethod_0); } this.P2PChannelOpened += cbGeneric_2; if (cbGeneric_3 == null) { cbGeneric_3 = new CbGeneric <P2PChannelState>(P2PClass.smethod_1); } this.P2PChannelClosed += cbGeneric_3; this.object_0 = interface26_0; this.p2PSessionMessageTypeRoom_0 = p2PSessionMessageTypeRoom_1; this.emptyAgileLogger_0 = (EmptyAgileLogger)iagileLogger_0; }
public UdpChannelManager(AgileIPE agileIPE_2, Interface26 interface26_0, P2PSessionMessageTypeRoom p2PSessionMessageTypeRoom_1, bool bool_3, IAgileLogger iagileLogger_0) { if (cbGeneric_7 == null) { cbGeneric_7 = new CbGeneric <P2PChannelState>(UdpChannelManager.smethod_0); } this.P2PChannelOpened += cbGeneric_7; if (cbGeneric_8 == null) { cbGeneric_8 = new CbGeneric <P2PChannelState>(UdpChannelManager.smethod_1); } this.P2PChannelClosed += cbGeneric_8; this.agileIPE_0 = agileIPE_2; this.object_0 = interface26_0; this.p2PSessionMessageTypeRoom_0 = p2PSessionMessageTypeRoom_1; this.bool_1 = bool_3; this.emptyAgileLogger_0 = (EmptyAgileLogger)iagileLogger_0; }
internal AgileTcpListener(int int_5, bool bool_3, string string_2, bool bool_4, bool bool_5, IAgileLogger iagileLogger_2, IAgileLogger iagileLogger_3, Class119 class119_0) { if ((!bool_3 && ((this.enum0_0 == ((ClientTimeEnum)3)) || (this.enum0_0 == ((ClientTimeEnum)2)))) && smethod_0("ESF-" + this.string_0)) { throw new Exception("CJFramework Error : there's one CJFramework server instance running. AuthorizedUserID is " + this.string_0); } this.bool_0 = bool_5; this.iagileLogger_0 = iagileLogger_2; this.iagileLogger_1 = iagileLogger_3; this.eventSafeTrigger_0 = new EventSafeTrigger(iagileLogger_2, "Agt5W7B5WBoJhMi3tS0.akDdtXBaxZZh04bUDlN"); this.class117_0 = new Class117(this.string_0, this.enum0_0, this.iagileLogger_1, class119_0); if (!(bool_3 || !this.bool_2)) { this.class117_0.Event_0 += new CbGeneric <bool, bool>(this.method_6); this.class117_0.method_2(); } if (cbGeneric_1 == null) { cbGeneric_1 = new CbGeneric <NetworkStream, EndPoint>(AgileTcpListener.OnTcpConnectionEstablished); } this.TcpConnectionEstablished += cbGeneric_1; this.bool_1 = bool_3; this.int_0 = bool_3 ? 0x7fffffff : (this.int_3 + 1); if (string_2 != null) { this.tcpListener_0 = new TcpListener(IPAddress.Parse(string_2), int_5); } else { this.tcpListener_0 = new TcpListener(IPAddress.Any, int_5); if (Socket.OSSupportsIPv6 && bool_4) { this.tcpListener_1 = new TcpListener(IPAddress.IPv6Any, int_5); } } this.tcpListener_0.Server.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.ReuseAddress, bool_3); if (this.tcpListener_1 != null) { this.tcpListener_1.Server.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.ReuseAddress, bool_3); } }
public void method_1(IAgileLogger iagileLogger_1) { if (!TcpEngine.bool_0) { this.iagileLogger_0 = iagileLogger_1; try { string name = TypeHelper.GetDefaultValue(typeof(int)).ToString(); this.int_2 = Process.GetCurrentProcess().Id; object data = AppDomain.CurrentDomain.GetData(name); if (data != null) { this.int_3 = int.Parse(data.ToString()); } } catch { } new CbGeneric(this.method_2).BeginInvoke(null, null); } }
public DirectoryReceiver(IAgileLogger iagileLogger_0, string string_5, string string_6, ResumedProjectItem resumedProjectItem_0) { this.eventSafeTrigger_0 = new EventSafeTrigger(new EmptyAgileLogger(), "XrZokLIgmVlcsHl3C7.nxZXDMlUfKsyJYxeVn"); this.emptyAgileLogger_0 = new EmptyAgileLogger(); this.ulong_0 = 0L; this.ulong_1 = 0L; this.ulong_2 = 0L; this.string_3 = ""; this.ulong_4 = 0L; this.emptyAgileLogger_0 = (EmptyAgileLogger)iagileLogger_0; this.string_3 = string_5; this.string_0 = resumedProjectItem_0.LocalSavePath; this.string_4 = string_6; string[] strArray = this.string_0.Trim().Split(new char[] { '\\' }); this.object_0 = strArray[strArray.Length - 2]; this.ulong_3 = resumedProjectItem_0.OriginSize; this.ulong_0 = resumedProjectItem_0.ReceivedCount; if (cbGeneric_3 == null) { cbGeneric_3 = new CbGeneric <string>(DirectoryReceiver.smethod_3); } this.FileTransCompleted += cbGeneric_3; if (cbFileTransDisruptted_2 == null) { cbFileTransDisruptted_2 = new CbFileTransDisruptted(DirectoryReceiver.smethod_4); } this.FileTransDisruptted += cbFileTransDisruptted_2; if (cbFileSendedProgress_2 == null) { cbFileSendedProgress_2 = new CbFileSendedProgress(DirectoryReceiver.smethod_5); } this.FileTransProgress += cbFileSendedProgress_2; this.ulong_4 = resumedProjectItem_0.ReceivedCount - resumedProjectItem_0.DisrupttedFileReceivedCount; string str = this.string_0 + resumedProjectItem_0.DisrupttedFileRelativePath; this.enisnmwGbe = new FileReceiver(this.emptyAgileLogger_0, this.string_3, resumedProjectItem_0.LocalTempFileSavePath, str, resumedProjectItem_0.DisrupttedFileSize, resumedProjectItem_0.DisrupttedFileReceivedCount); this.enisnmwGbe.FileTransDisruptted += new CbFileTransDisruptted(this.method_5); this.enisnmwGbe.FileTransCompleted += new CbGeneric <string>(this.OnFileTransCompleted); this.enisnmwGbe.FileTransProgress += new CbFileSendedProgress(this.method_3); }
public static void SpringEventSafely(IAgileLogger agileLogger, string eventPath, Delegate theEvent) { if (theEvent != null) { foreach (Delegate delegate2 in theEvent.GetInvocationList()) { try { CbGeneric generic = (CbGeneric)delegate2; generic(); } catch (Exception innerException) { while (innerException.InnerException != null) { innerException = innerException.InnerException; } agileLogger.Log(innerException, string.Format("{0} On handle event [{1}].", ReflectionHelper.GetMethodFullName(delegate2.Method), eventPath), ErrorLevel.Standard); } } } }
public static void PreInitialize() { try { #region Log string logFilePath = SystemSettings.SystemSettingsDir + "AppLog.txt"; GlobalResourceManager.logger = new FileAgileLogger(logFilePath); #endregion GlobalResourceManager.softwareName = ConfigurationManager.AppSettings["softwareName"]; string resourceDir = AppDomain.CurrentDomain.BaseDirectory + "Resource\\"; GlobalResourceManager.noneIcon64 = global::GGTalk.Properties.Resources.None64; GlobalResourceManager.groupIcon = ImageHelper.ConvertToIcon(global::GGTalk.Properties.Resources.normal_group_40, 64); #region HeadImage List<string> list = ESBasic.Helpers.FileHelper.GetOffspringFiles(AppDomain.CurrentDomain.BaseDirectory + "Head\\"); List<string> picList = new List<string>(); foreach (string file in list) { string name = file.ToLower(); if (name.EndsWith(".bmp") || name.EndsWith(".jpg") || name.EndsWith(".jpeg") || name.EndsWith(".png")) { picList.Add(name); } } picList.Sort(); GlobalResourceManager.headImages = new Image[picList.Count]; for (int i = 0; i < picList.Count; i++) { GlobalResourceManager.headImages[i] = Image.FromFile(AppDomain.CurrentDomain.BaseDirectory + "head\\" + list[i]); } GlobalResourceManager.headImagesGrey = new Image[picList.Count]; for (int i = 0; i < GlobalResourceManager.headImagesGrey.Length; i++) { GlobalResourceManager.headImagesGrey[i] = ESBasic.Helpers.ImageHelper.ConvertToGrey(GlobalResourceManager.headImages[i]); } #endregion #region Emotion List<string> tempList = ESBasic.Helpers.FileHelper.GetOffspringFiles(AppDomain.CurrentDomain.BaseDirectory + "Emotion\\"); List<string> emotionFileList = new List<string>(); foreach (string file in tempList) { string name = file.ToLower(); if (name.EndsWith(".bmp") || name.EndsWith(".jpg") || name.EndsWith(".jpeg") || name.EndsWith(".png") || name.EndsWith(".gif")) { emotionFileList.Add(name); } } emotionFileList.Sort(new Comparison<string>(CompareEmotionName)); List<Image> emotionList = new List<Image>(); for (int i = 0; i < emotionFileList.Count; i++) { emotionList.Add(Image.FromFile(AppDomain.CurrentDomain.BaseDirectory + "Emotion\\" + emotionFileList[i])); } #endregion GlobalResourceManager.audioFilePath = resourceDir + "ring.wav"; int registerPort = int.Parse(ConfigurationManager.AppSettings["RemotingPort"]); GlobalResourceManager.remotingService = (IRemotingService)Activator.GetObject(typeof(IRemotingService), string.Format("tcp://{0}:{1}/RemotingService", ConfigurationManager.AppSettings["ServerIP"], registerPort)); GlobalResourceManager.png64 = Image.FromFile(resourceDir + "64.png"); GlobalResourceManager.icon64 = ImageHelper.ConvertToIcon(GlobalResourceManager.png64, 64); GlobalResourceManager.icon64Grey = ImageHelper.ConvertToIcon(ImageHelper.ConvertToGrey(GlobalResourceManager.png64), 64); GlobalResourceManager.mainBackImage = Image.FromFile(resourceDir + "BackImage.png"); GlobalResourceManager.emotionList = emotionList; GlobalResourceManager.loginBackImage = GlobalResourceManager.MainBackImage; } catch (Exception ee) { MessageBox.Show("加载系统资源时,出现错误。" + ee.Message); } }
public ExceptionFileLogger(IAgileLogger logger) : this(logger, ErrorLevel.Standard) { }
public ExceptionFileLogger(IAgileLogger logger, ErrorLevel _errorLevel) { this.agileLogger = logger; this.errorLevel = _errorLevel; }
public SecurityFileLogger(IAgileLogger logger) { this.agileLogger = logger; }
public ExceptionInterceptor(IAgileLogger logger) : this(new ExceptionFileLogger(logger)) { }
public MethodTimeFileLogger(IAgileLogger logger, int _minSpanInMSecsToLog) { this.agileLogger = logger; this.minSpanInMSecsToLog = _minSpanInMSecsToLog; }