SourceMessageExtension AsSourceMessage T Method | Glimpse API Documentation |
Populates relevant properties on the source message.
Namespace: Glimpse.Core.MessageAssembly: 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: System Type
Type of the executed.
- executedMethod
- Type: System.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 Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).See Also