Represents information about the caller of the Logger class.
Namespace: PostSharp.Patterns.Diagnostics.Contexts
Assembly: PostSharp.Patterns.Common.dll
Syntax
public struct CallerInfoConstructors
| Name | Description |
|---|---|
| CallerInfo(RuntimeTypeHandle, string, string, int, int) | |
| CallerInfo(RuntimeTypeHandle, string, string, int, int, CallerAttributes) | Initializes a new instance of the CallerInfo struct, and uses a RuntimeTypeHandle to specify the source type. |
| CallerInfo(Type, string, string, int, int) | |
| CallerInfo(Type, string, string, int, int, CallerAttributes) | Initializes a new instance of the CallerInfo struct, and uses a Type to specify the source type. |
Properties
| Name | Description |
|---|---|
| Attributes | Gets the caller attributes. |
| IsAsync | Gets a value indicating whether the caller is an |
| IsNull | Gets a value indicating whether the current CallerInfo is null. |
| MethodName | Gets the name of the caller method. |
| SourceLineInfo | Gets the SourceLineInfo of the caller. |
| SourceType | Gets the source Type. |
| SourceTypeToken | Gets the RuntimeTypeHandle of the caller Type. |
Methods
| Name | Description |
|---|---|
| GetDynamic(int) | Gets a CallerInfo of the caller by performing a stack walk with StackFrame. |
| ToString() |