MSBuildServerLifecycleEventArgs Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
How the build related to the MSBuild Server node.
- 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).