Open sandboxFocus

Constructor MessageSource

MessageSource(string, ResourceManager)

Initializes a new instance of the MessageSource class backed by a ResourceManager.

Declaration
public MessageSource(string source, ResourceManager resourceManager)
Parameters
Type Name Description
string source

The source name.

ResourceManager resourceManager

The ResourceManager.

MessageSource(string, IMessageDispenser)

Initializes a new instance of the MessageSource class backed by a IMessageDispenser.

Declaration
public MessageSource(string source, IMessageDispenser messageDispenser)
Parameters
Type Name Description
string source

The name of the component that emits the messages.

IMessageDispenser messageDispenser

The IMessageDispenser that will be used to retrieve message texts.