From a78691c86bba7b1b137cbefbb2e0db0491bc7bc7 Mon Sep 17 00:00:00 2001 From: Charles Gagnon Date: Wed, 31 Aug 2022 14:19:26 -0700 Subject: [PATCH] Update ConnectionCompleteParams definitions and doc comments (#1665) --- .../ConnectionCompleteNotification.cs | 32 +++++++++---------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/src/Microsoft.SqlTools.ServiceLayer/Connection/Contracts/ConnectionCompleteNotification.cs b/src/Microsoft.SqlTools.ServiceLayer/Connection/Contracts/ConnectionCompleteNotification.cs index 2fea773b..e5f15b38 100644 --- a/src/Microsoft.SqlTools.ServiceLayer/Connection/Contracts/ConnectionCompleteNotification.cs +++ b/src/Microsoft.SqlTools.ServiceLayer/Connection/Contracts/ConnectionCompleteNotification.cs @@ -19,34 +19,34 @@ namespace Microsoft.SqlTools.ServiceLayer.Connection.Contracts public string OwnerUri { get; set; } /// - /// A GUID representing a unique connection ID + /// A GUID representing a unique connection ID, only populated if the connection was successful. /// - public string ConnectionId { get; set; } + public string? ConnectionId { get; set; } /// - /// Gets or sets any detailed connection error messages. + /// Additional optional detailed error messages, if an error occurred. /// - public string Messages { get; set; } + public string? Messages { get; set; } /// - /// Error message returned from the engine for a connection failure reason, if any. + /// Error message for the connection failure, if an error occured. /// - public string ErrorMessage { get; set; } + public string? ErrorMessage { get; set; } /// - /// Error number returned from the engine for connection failure reason, if any. + /// Error number returned from the engine or server host, if an error occurred. /// - public int ErrorNumber { get; set; } + public int? ErrorNumber { get; set; } /// - /// Information about the connected server. + /// Information about the connected server, if the connection was successful. /// - public ServerInfo ServerInfo { get; set; } + public ServerInfo? ServerInfo { get; set; } /// - /// Gets or sets the actual Connection established, including Database Name + /// Information about the actual connection established, if the connection was successful. /// - public ConnectionSummary ConnectionSummary { get; set; } + public ConnectionSummary? ConnectionSummary { get; set; } /// /// The type of connection that this notification is for @@ -54,14 +54,14 @@ namespace Microsoft.SqlTools.ServiceLayer.Connection.Contracts public string Type { get; set; } = ConnectionType.Default; /// - /// Gets or sets a boolean value indicates whether the current server version is supported by the service. + /// Whether the server version is supported /// - public bool IsSupportedVersion { get; set; } + public bool? IsSupportedVersion { get; set; } /// - /// Gets or sets the additional warning message about the unsupported server version. + /// Additional optional message with details about why the version isn't supported. /// - public string UnsupportedVersionMessage { get; set; } + public string? UnsupportedVersionMessage { get; set; } } ///