PostSharp 5.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Extensibility Namespace / Message­Source Class / Message­Source Constructor / Message­Source Constructor (String, IMessage­Dispenser)

MessageSource Constructor (String, IMessageDispenser)

Initializes a new MessageSource backed by a IMessageDispenser.

Namespace:  PostSharp.Extensibility
Assembly:  PostSharp (in PostSharp.dll) Version: 5.0.55.0 (5.0.55.0)
Syntax
C#
public MessageSource(
	string source,
	IMessageDispenser messageDispenser
)

Parameters

source
Type: System.String
Name of the component emitting. the messages.
messageDispenser
Type: PostSharp.Extensibility.IMessageDispenser
The IMessageDispenser that will be used to retrieve message texts.
See Also