Class
GoogleWorkspaceDiagnosticsDispatcher
OfficeIMO.GoogleWorkspace
Records translation notices and forwards matching structured entries to a session sink.
Inheritance
- object
- GoogleWorkspaceDiagnosticsDispatcher
Methods
public static void Add(TranslationReport report, GoogleWorkspaceSessionOptions? sessionOptions, TranslationSeverity severity, string feature, string message, string path = "", GoogleWorkspaceFailureKind? failureKind = null, string? code = null, TranslationAction action = None, int count = 1, string? targetId = null) #Adds a notice to a report and emits the equivalent structured diagnostic.
Parameters
- report OfficeIMO.GoogleWorkspace.TranslationReport
- sessionOptions OfficeIMO.GoogleWorkspace.GoogleWorkspaceSessionOptions?
- severity OfficeIMO.GoogleWorkspace.TranslationSeverity
- feature string
- message string
- path string = ""
- failureKind OfficeIMO.GoogleWorkspace.GoogleWorkspaceFailureKind? = null
- code string? = null
- action OfficeIMO.GoogleWorkspace.TranslationAction = None
- count int = 1
- targetId string? = null
public static void AddUnique(TranslationReport report, GoogleWorkspaceSessionOptions? sessionOptions, TranslationSeverity severity, string feature, string message, string path = "", GoogleWorkspaceFailureKind? failureKind = null, string? code = null, TranslationAction action = None, int count = 1, string? targetId = null) #Adds and emits a diagnostic unless the same severity, feature, message, and path already exist.
Parameters
- report OfficeIMO.GoogleWorkspace.TranslationReport
- sessionOptions OfficeIMO.GoogleWorkspace.GoogleWorkspaceSessionOptions?
- severity OfficeIMO.GoogleWorkspace.TranslationSeverity
- feature string
- message string
- path string = ""
- failureKind OfficeIMO.GoogleWorkspace.GoogleWorkspaceFailureKind? = null
- code string? = null
- action OfficeIMO.GoogleWorkspace.TranslationAction = None
- count int = 1
- targetId string? = null
public static void Emit(GoogleWorkspaceSessionOptions? sessionOptions, GoogleWorkspaceDiagnosticEntry entry) #Sends one entry to the configured diagnostic sink, when present.
Parameters
- sessionOptions OfficeIMO.GoogleWorkspace.GoogleWorkspaceSessionOptions?
- Session containing the optional sink.
- entry OfficeIMO.GoogleWorkspace.GoogleWorkspaceDiagnosticEntry
- Entry to emit.