PostSharp6.3/API Reference/Post­Sharp.​Patterns.​Diagnostics Namespace/Logging­Backend Class/Logging­Backend Methods/Logging­Backend.​Open­Iterator­Context Method

LoggingBackend.OpenIteratorContext Method

Gets an IteratorLoggingContext for a given iterator method.

Namespace:  PostSharp.Patterns.Diagnostics
Assembly:  PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 6.3.11.0 (6.3.11.0)
Syntax
C#
public IteratorLoggingContext OpenIteratorContext(
	IEnumerator enumerator,
	ref LogMemberInfo logMemberInfo
)

Parameters

enumerator
Type: System.Collections.IEnumerator
The IEnumerator associated with the method to be logged.
logMemberInfo
Type: PostSharp.Patterns.Diagnostics.Contexts.LogMemberInfo
A reference to a LogMemberInfo describing the method being logged.

Return Value

Type: IteratorLoggingContext
An IteratorLoggingContext for logMemberInfo.
See Also