PostSharp6.7//API Reference/Post­Sharp.​Patterns.​Diagnostics Namespace/Log­Activity(TActivity­Description) Structure/Log­Activity(TActivity­Description) Methods/Log­Activity(TActivity­Description).​Set­Outcome(TMessage) Method

LogActivity<TActivityDescription>.SetOutcome<TMessage> Method

Namespace:  PostSharp.Patterns.Diagnostics
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.7.12.0 (6.7.12.0)
Syntax
C#
public void SetOutcome<TMessage>(
	LogLevel level,
	 in TMessage message,
	Exception exception = null,
	 in CloseActivityOptions options = null
)
where TMessage : IMessage

Parameters

level
Type: PostSharp.Patterns.Diagnostics.LogLevel
message
Type: TMessage
exception (Optional)
Type: System.Exception
options (Optional)
Type: PostSharp.Patterns.Diagnostics.CloseActivityOptions

Type Parameters

TMessage
See Also