Table of Contents

Class MessageHost

Namespace
Hi.Common.Messages
Assembly
HiGeom.dll

Provides utility methods for handling messages.

public static class MessageHost
Inheritance
MessageHost
Inherited Members

Properties

Default

Gets the default MessageKit instance.

public static Progress<object> Default { get; set; }

Property Value

Progress<object>

Methods

Default_ProgressChanged(object, object)

public static void Default_ProgressChanged(object sender, object arg)

Parameters

sender object
arg object

ReportError(string)

Adds an error message to the default message kit. Apply ExceptionUtil.ShowException(Exception, object) if the error message comes from exception for better treatment.

public static void ReportError(string message)

Parameters

message string

The message to write.

ReportException(Exception)

Adds an exception to the default message kit.

public static void ReportException(Exception exception)

Parameters

exception Exception

The exception to add.

ReportInfo(string)

Adds an info message to the default message kit.

public static void ReportInfo(string message)

Parameters

message string

The message to write.

ReportMessage(string)

Adds a plain message to the default message kit.

public static void ReportMessage(string message)

Parameters

message string

The message to write.

ReportProgress(string)

Adds a progress message to the default message kit.

public static void ReportProgress(string message)

Parameters

message string

The message to write.

ReportSuccess(string)

Adds a success message to the default message kit.

public static void ReportSuccess(string message)

Parameters

message string

The message to write.

ReportWarning(string)

Adds a warning message to the default message kit.

public static void ReportWarning(string message)

Parameters

message string

The message to write.