PostSharp 2023.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Extensibility.​Build­Time­Logging Namespace / Build­Time­Log­Activity Structure

BuildTimeLogActivity Structure

Value returned by the Activity(String) method that should be disposed to mark the end of the activity and decrease the indentation level.

Namespace:  PostSharp.Extensibility.BuildTimeLogging
Assembly:  PostSharp (in PostSharp.dll) Version: 2023.0.3.0 (2023.0.3.0)
public struct BuildTimeLogActivity : IDisposable

The BuildTimeLogActivity type exposes the following members.

Public methodDispose
When the current BuildTimeLogActivity has been returned by the Activity(String) method, decreases the indentation level.

Only the value returned by Activity(String) method results in the indentation level to be decreased upon when the Dispose() method is invoked. Calling the Dispose() method on the default instance has no effect.

See Also