public MsKqlKernel( string name, KqlConnectionDetails connectionDetails, ToolsServiceClient client) : base(name, client) { _connectionDetails = connectionDetails ?? throw new ArgumentException("Value cannot be null or whitespace.", nameof(connectionDetails)); }
internal static async Task <bool> ConnectAsync(this ToolsServiceClient serviceClient, Uri ownerUri, KqlConnectionDetails kqlDetails) { var connectionOptions = new Dictionary <string, string> { { "server", kqlDetails.Cluster }, { "database", kqlDetails.Database }, { "azureAccountToken", kqlDetails.Token }, { "authenticationType", kqlDetails.AuthenticationType } }; var connectionParams = new ConnectParams { OwnerUri = ownerUri.AbsolutePath, Connection = new ConnectionDetails { Options = connectionOptions } }; return(await serviceClient.ConnectAsync(connectionParams)); }