Table of Contents

Class MessageHostUtil

Namespace
Hi.Common.Messages
Assembly
HiGeom.dll

Utility methods for working with IMessageHost implementations.

public static class MessageHostUtil
Inheritance
MessageHostUtil
Inherited Members

Methods

AddError(IMessageHost, string, params string[])

Adds an Error message to the message host.

public static object AddError(this IMessageHost host, string message, params string[] otherTags)

Parameters

host IMessageHost

The message host

message string

The message content

otherTags string[]

Additional tags to associate with the message

Returns

object

The result of adding the message

AddException(IMessageHost, Exception, params string[])

Adds an Exception message to the message host.

public static object AddException(this IMessageHost host, Exception exception, params string[] otherTags)

Parameters

host IMessageHost

The message host

exception Exception

The exception to log

otherTags string[]

Additional tags to associate with the message

Returns

object

The result of adding the message

AddInfo(IMessageHost, string, params string[])

Adds an Info message to the message host.

public static object AddInfo(this IMessageHost host, string message, params string[] otherTags)

Parameters

host IMessageHost

The message host

message string

The message content

otherTags string[]

Additional tags to associate with the message

Returns

object

The result of adding the message

AddMessage(IMessageHost, string, params string[])

Adds a message with the specified tags to the message host.

public static object AddMessage(this IMessageHost host, string msg, params string[] tags)

Parameters

host IMessageHost

The message host

msg string

The message content

tags string[]

The tags to associate with the message

Returns

object

The result of adding the message

AddProgress(IMessageHost, string, params string[])

Adds a Progress message to the message host.

public static object AddProgress(this IMessageHost host, string message, params string[] otherTags)

Parameters

host IMessageHost

The message host

message string

The message content

otherTags string[]

Additional tags to associate with the message

Returns

object

The result of adding the message

AddSuccess(IMessageHost, string, params string[])

Adds a Success message to the message host.

public static object AddSuccess(this IMessageHost host, string message, params string[] otherTags)

Parameters

host IMessageHost

The message host

message string

The message content

otherTags string[]

Additional tags to associate with the message

Returns

object

The result of adding the message

AddWarning(IMessageHost, string, params string[])

Adds a warning message to the message host.

public static object AddWarning(this IMessageHost host, string message, params string[] otherTags)

Parameters

host IMessageHost

The message host

message string

The message content

otherTags string[]

Additional tags to associate with the message

Returns

object

The result of adding the message