Class MessageHostUtil
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
hostIMessageHostThe message host
messagestringThe message content
otherTagsstring[]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
hostIMessageHostThe message host
msgstringThe message content
tagsstring[]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
hostIMessageHostThe message host
messagestringThe message content
otherTagsstring[]Additional tags to associate with the message
Returns
- object
The result of adding the message
AddSysErr(IMessageHost, string, params string[])
Adds a system error message to the message host.
public static object AddSysErr(this IMessageHost host, string message, params string[] otherTags)
Parameters
hostIMessageHostThe message host
messagestringThe message content
otherTagsstring[]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
hostIMessageHostThe message host
messagestringThe message content
otherTagsstring[]Additional tags to associate with the message
Returns
- object
The result of adding the message