Table of Contents

Interface IOpenShellClientBuilder

Namespace
Microsoft.Extensions.DependencyInjection
Assembly
OpenShell.Sdk.DependencyInjection.dll

Configures one gateway registration fluently. Obtain it from AddOpenShellClient.

public interface IOpenShellClientBuilder
Extension Methods

Properties

Name

The registration name; empty for the default gateway.

string Name { get; }

Property Value

string

Services

The service collection being configured.

IServiceCollection Services { get; }

Property Value

IServiceCollection

Methods

Configure(Action<OpenShellOptions>)

Adjusts the options in code.

IOpenShellClientBuilder Configure(Action<OpenShellOptions> configure)

Parameters

configure Action<OpenShellOptions>

Returns

IOpenShellClientBuilder

Configure(Action<IServiceProvider, OpenShellOptions>)

Adjusts the options with access to other registered services, such as a token cache or secret store.

IOpenShellClientBuilder Configure(Action<IServiceProvider, OpenShellOptions> configure)

Parameters

configure Action<IServiceProvider, OpenShellOptions>

Returns

IOpenShellClientBuilder