PostSharp//API Reference/Post­Sharp.​Extensibility/Message­Source/Message­Source
Open sandboxFocus

Constructor MessageSource

MessageSource(String, ResourceManager)

Instantiates a MessageSource backed by a ResourceManager.

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

Source name.

ResourceManager resourceManager

The ResourceManager.

MessageSource(String, IMessageDispenser)

Initializes a new MessageSource backed by a IMessageDispenser.

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

Name of the component emitting. the messages.

IMessageDispenser messageDispenser

The IMessageDispenser that will be used to retrieve message texts.