Lingua

MSBuildServerLifecycleEventArgs Constructor

Definition

Initializes a new instance of the MSBuildServerLifecycleEventArgs class.

public MSBuildServerLifecycleEventArgs(Microsoft.Build.Framework.MSBuildServerLifecycleKind kind, int processId, string? reason, string? reasonCode, string? message, Microsoft.Build.Framework.MessageImportance importance = Microsoft.Build.Framework.MessageImportance.Low, bool shortLived = false);
new Microsoft.Build.Framework.MSBuildServerLifecycleEventArgs : Microsoft.Build.Framework.MSBuildServerLifecycleKind * int * string * string * string * Microsoft.Build.Framework.MessageImportance * bool -> Microsoft.Build.Framework.MSBuildServerLifecycleEventArgs
Public Sub New (kind As MSBuildServerLifecycleKind, processId As Integer, reason As String, reasonCode As String, message As String, Optional importance As MessageImportance = Microsoft.Build.Framework.MessageImportance.Low, Optional shortLived As Boolean = false)

Parameters

kind
MSBuildServerLifecycleKind

How the build related to the MSBuild Server node.

processId
Int32

The MSBuild Server node's process id (0 when not applicable, e.g. for NotUsed).

reason
String

A localized, human-readable reason the server was not used (for NotUsed); otherwise null.

reasonCode
String

A stable, non-localized code for the fall-back cause (for NotUsed); otherwise null.

message
String

The localized, human-readable message describing the event.

importance
MessageImportance

The importance of the message.

shortLived
Boolean

true when a spawned server will shut down after this build instead of staying resident for reuse (a "short-lived" server).

Applies to