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
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
hostIMessageHostThe message host
exceptionExceptionThe exception to log
otherTagsstring[]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
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
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
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