KuduClientAliases.

KuduClient(ICakeContext, KuduClientSettings) Method

Summary

Get a Kudu client using supplied .
Assembly
Cake.Kudu.Client.dll
Namespace
Cake.Kudu.Client
Containing Type
KuduClientAliases

Syntax

public static IKuduClient KuduClient(this ICakeContext context, KuduClientSettings settings)

Examples

 #addin nuget:?package=Cake.Kudu.Client

 string  baseUri     = EnvironmentVariable("KUDU_CLIENT_BASEURI"),
         userName    = EnvironmentVariable("KUDU_CLIENT_USERNAME"),
         password    = EnvironmentVariable("KUDU_CLIENT_PASSWORD");

 IKuduClient kuduClient = KuduClient(
     new KuduClientSettings(
         baseUri,
        userName,
        password
    ){
        Timeout = TimeSpan.FromSeconds(120)
        });

Attributes

Type Description
CakeMethodAliasAttribute
CakeAliasCategoryAttribute

Parameters

Name Type Description
context ICakeContext The context.
settings KuduClientSettings The settings.

Return Value

Type Description
IKuduClient A new instance of a .