AsSourceMessage(T) Method

Glimpse API

SourceMessageExtension AsSourceMessage T  Method Glimpse API Documentation
Populates relevant properties on the source message.

Namespace: Glimpse.Core.Message
Assembly: Glimpse.Core (in Glimpse.Core.dll) Version: 1.0.1.0 (1.0.1)

Syntax

public static T AsSourceMessage<T>(
	this T message,
	Type executedType,
	MethodInfo executedMethod
)
where T : ISourceMessage
public static T AsSourceMessage<T>(
	this T message,
	Type executedType,
	MethodInfo executedMethod
)
where T : ISourceMessage

Parameters

message
Type: T
The message.
executedType
Type: OnlineSystem Type
Type of the executed.
executedMethod
Type: OnlineSystem.Reflection MethodInfo
The executed method.
Type Parameters

T
The type of the message.

Return Value

The message with populated ISourceMessage properties.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type . When you use instance method syntax to call this method, omit the first parameter. For more information, see OnlineExtension Methods (Visual Basic) or OnlineExtension Methods (C# Programming Guide).
See Also