/// <summary> /// Reports an event during type library exporting. /// </summary> /// <param name="eventKind">Kind of event reported.</param> /// <param name="eventCode">Event code. 0 if the event is /// simply information, otherwise an HRESULT representing /// the warning or error code.</param> /// <param name="eventMsg">Event message.</param> public void ReportEvent(ExporterEventKind eventKind, int eventCode, string eventMsg) { // What we output depends on the kind of event we have. switch (eventKind) { case ExporterEventKind.NOTIF_TYPECONVERTED: { // A type has been converted; log in verbose mode. parent.console.Verbose.WriteLine(eventMsg); break; } case ExporterEventKind.NOTIF_CONVERTWARNING: { // A converter warning; log as normal output. parent.console.WriteLine(eventMsg); break; } case ExporterEventKind.ERROR_REFTOINVALIDASSEMBLY: { // An error occured, but for us, it's a bit like // a warning, because failing to export will not // kill the process. Log as normal output. parent.console.WriteLine(eventMsg); break; } default: { Debug.Fail(String.Format("Invalid event kind: {0}", eventKind.ToString())); break; } } }
public void ReportEvent(ExporterEventKind EventKind, int EventCode, String EventMsg) { if (!GenMan32Main.s_Options.m_bSilentMode) { Console.WriteLine(EventMsg); } }
public void ReportEvent(ExporterEventKind EventKind, int EventCode, string EventMsg) { if ((EventKind != ExporterEventKind.NOTIF_TYPECONVERTED) && (this._report != null)) { this._report(EventMsg); } }
public void ReportEvent(ExporterEventKind EventKind, int EventCode, string EventMsg) { if (!global::GenMan45.GenMan32.s_Options.m_bSilentMode) { Console.WriteLine(EventMsg); } }
public void ReportEvent(ExporterEventKind eventKind, int eventCode, string eventMsg) { // Handle the warning event here. if (m_bVerbose) { Console.WriteLine("ConversionEventHandler.ReportEvent() [eventKind : {0:S}] [eventCode : {1:D}] [eventMsg : {2:S}]", eventKind.ToString(), eventCode, eventMsg); } }
public void ReportEvent(ExporterEventKind EventKind, int EventCode, String EventMsg) { if (EventKind == ExporterEventKind.NOTIF_TYPECONVERTED) { if (TlbExpCode.s_Options.m_bVerboseMode) { Console.WriteLine(EventMsg); } } else { Console.WriteLine(EventMsg); } }
public void ReportEvent(ExporterEventKind kind, int code, string msg) { if (kind == ExporterEventKind.ERROR_REFTOINVALIDASSEMBLY) { base.Log.LogError(msg, new object[0]); this.typeLibExportFailed = true; } else if (kind == ExporterEventKind.NOTIF_CONVERTWARNING) { base.Log.LogWarning(msg, new object[0]); } else if (kind == ExporterEventKind.NOTIF_TYPECONVERTED) { base.Log.LogMessage(MessageImportance.Low, msg, new object[0]); } else { base.Log.LogMessage(MessageImportance.Low, msg, new object[0]); } }
/// <summary> /// Callback method for reporting type library export events /// </summary> /// <param name="kind"></param> /// <param name="code"></param> /// <param name="msg"></param> public void ReportEvent(ExporterEventKind kind, int code, string msg) { // if we get an error, log it and remember we should fail ExportTypeLib if (kind == ExporterEventKind.ERROR_REFTOINVALIDASSEMBLY) { Log.LogError(msg); _typeLibExportFailed = true; } // if it's just a warning, log it and proceed else if (kind == ExporterEventKind.NOTIF_CONVERTWARNING) { Log.LogWarning(msg); } // it's just a status message (type xxx converted etc.), log it at lowest possible priority else if (kind == ExporterEventKind.NOTIF_TYPECONVERTED) { Log.LogMessage(MessageImportance.Low, msg); } else { Debug.Assert(false, "Unknown ImporterEventKind value"); Log.LogMessage(MessageImportance.Low, msg); } }
public void ReportEvent(ExporterEventKind eventKind, int eventCode, string eventMsg) { // no-op }
public void ReportEvent(ExporterEventKind kind, int code, string msg) { throw new NotImplementedException(); }
public void ReportEvent(ExporterEventKind eventKind, int eventCode, string eventMsg) { }
public void ReportEvent(ExporterEventKind EventKind, int EventCode, string EventMsg) { System.Diagnostics.Debug.WriteLine("Регистрация типов в сборке через RegAsm. Сообщение: " + EventMsg); }
public void ReportEvent(ExporterEventKind eventKind, int eventCode, string eventMsg) { // Handle the warning event here. }
public void ReportEvent (ExporterEventKind kind, int code, string msg) { throw new NotImplementedException (); }