Table of Contents

Class TendukeConfigurationBuilder

Namespace
Tenduke.Core.Config
Assembly
Tenduke.Core.dll

A type used to build the configuration for a 10Duke SDK.

public class TendukeConfigurationBuilder
Inheritance
TendukeConfigurationBuilder
Inherited Members
Extension Methods

Constructors

TendukeConfigurationBuilder()

Initialize a new instance.

public TendukeConfigurationBuilder()

TendukeConfigurationBuilder(IHttpClientFactory?)

Initialize a new instance.

public TendukeConfigurationBuilder(IHttpClientFactory? httpClientFactory)

Parameters

httpClientFactory IHttpClientFactory

Used to create HttpClient when loading OpenId Provider Configuration information from IdpOidcDiscoveryUrl.

Methods

Build()

Builds a TendukeConfig with the values from the registered sources.

public TendukeConfig Build()

Returns

TendukeConfig

TendukeConfig constructed from configured sources.

Remarks

If the LicensingApiUrl cannot be set an exception will be thrown. Otherwise a TendukeConfig will be returned.

Sources are loaded in the reverse order they were added. Each source will overwrite previous sources. If a key is present in more that one source the last source loaded will be the final value.

Exceptions

InvalidOperationException

The configured sources could not be loaded into a valid TendukeConfig object.