Class BilingualContentMessageReporterProxy
BilingualContentMessageReporterProxy class is responsible for reporting messages using a message reporter.
Implements
Inherited Members
Namespace: SdlSdl.FileTypeSupportFrameworkBilingualApi
Assembly: Sdl.FileTypeSupport.Framework.Core.dll
Syntax
public class BilingualContentMessageReporterProxy : IBilingualContentMessageReporter, IBasicMessageReporter, IBilingualContentMessageReporterWithExtendedData, IBasicMessageReporterWithExtendedData
Remarks
Messages can be reported with extended data and without extended data. To report a message with extended data requires a message reporter that implements IBilingualContentMessageReporterWithExtendedData interface. This proxy implements both IBilingualContentMessageReporter and IBilingualContentMessageReporterWithExtendedData interfaces and safely calls the appropriate methods on the message reporter.
Constructors
BilingualContentMessageReporterProxy(IBilingualContentMessageReporter)
Constructor that takes the given message reporter.
Declaration
public BilingualContentMessageReporterProxy(IBilingualContentMessageReporter messageReporter)
Parameters
Type | Name | Description |
---|---|---|
IBilingualContentMessageReporter | messageReporter | message reporter |
Methods
ReportMessage(object, string, ErrorLevel, string, TextLocation, TextLocation)
Reports the message with the given message arguments.
Declaration
public void ReportMessage(object source, string origin, ErrorLevel level, string message, TextLocation fromLocation, TextLocation uptoLocation)
Parameters
Type | Name | Description |
---|---|---|
object | source | source |
string | origin | origin |
ErrorLevel | level | level |
string | message | message |
TextLocation | fromLocation | from location |
TextLocation | uptoLocation | upto location |
ReportMessage(object, string, ErrorLevel, string, TextLocation, TextLocation, ExtendedMessageEventData)
Reports the message with the given message arguments and extended data.
Declaration
public void ReportMessage(object source, string origin, ErrorLevel level, string message, TextLocation fromLocation, TextLocation uptoLocation, ExtendedMessageEventData extendedData)
Parameters
Type | Name | Description |
---|---|---|
object | source | source |
string | origin | origin |
ErrorLevel | level | level |
string | message | message |
TextLocation | fromLocation | from location |
TextLocation | uptoLocation | upto location |
ExtendedMessageEventData | extendedData | extended data |
Remarks
If the messager reporter does not implement IBasicMessageReporterWithExtendedData then the extended data will not be passed to the message reporter.
ReportMessage(object, string, ErrorLevel, string, string)
Reports the message with the given message arguments.
Declaration
public void ReportMessage(object source, string origin, ErrorLevel level, string message, string locationDescription)
Parameters
Type | Name | Description |
---|---|---|
object | source | source |
string | origin | origin |
ErrorLevel | level | level |
string | message | message |
string | locationDescription | location description |
ReportMessage(object, string, ErrorLevel, string, string, ExtendedMessageEventData)
Reports the message with the given message arguments and extended data.
Declaration
public void ReportMessage(object source, string origin, ErrorLevel level, string message, string locationDescription, ExtendedMessageEventData extendedData)
Parameters
Type | Name | Description |
---|---|---|
object | source | source |
string | origin | origin |
ErrorLevel | level | level |
string | message | message |
string | locationDescription | location description |
ExtendedMessageEventData | extendedData | extended data |
Remarks
If the messager reporter does not implement IBasicMessageReporterWithExtendedData then the extended data will not be passed to the message reporter.