// // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. // using System; namespace Microsoft.SqlTools.ServiceLayer.Connection.Contracts { /// /// Extension methods to ConnectParams /// public static class ConnectParamsExtensions { /// /// Check that the fields in ConnectParams are all valid /// public static bool IsValid(this ConnectParams parameters) { return !( String.IsNullOrEmpty(parameters.OwnerUri) || parameters.Connection == null || String.IsNullOrEmpty(parameters.Connection.Password) || String.IsNullOrEmpty(parameters.Connection.ServerName) || String.IsNullOrEmpty(parameters.Connection.UserName) ); } } }