Skip to main content

Definition

Assembly: CloudNimble.EasyAF.Configuration.dll Namespace: CloudNimble.EasyAF.Configuration Inheritance: System.Object

Syntax

Summary

A base class implementation of the configuration your Blazor app will pull from wwwroot/appsettings.json. Provides standard HttpClient configuration for API and application endpoints.

Remarks

This configuration class is typically used for customer-facing applications that need to communicate with external APIs and handle application-level HTTP requests. For administrative applications, consider using ConfigurationPlusAdminBase instead.

Examples

Constructors

.ctor

Syntax

.ctor Inherited

Inherited from object

Syntax

Properties

ApiClientName

The name of the HttpClient that will be used to hit the app’s Public API.

Syntax

Property Value

Type: string

ApiRoot

The root of the API that your Blazor app will call.

Syntax

Property Value

Type: string

Remarks

Most Blazor apps will call at least one API. If you need to call more than one, just inherit from ConfigurationBase and add your own properties.

AppClientName

The name of the HttpClient that will be used to hit the Blazor App’s Controllers.

Syntax

Property Value

Type: string

AppRoot

The website your Blazor app is being served from.

Syntax

Property Value

Type: string

Remarks

Sometimes you will need to get information about the app’s deployment before it has been fully-initialized in Program.cs. This is the place to do it.

HttpHandlerMode

Determines how HttpClient message handlers are configured when registering HTTP clients. Controls whether handlers are added to existing handlers or replace them entirely.

Syntax

Property Value

Type: CloudNimble.EasyAF.Core.HttpHandlerMode

Methods

Equals Inherited Virtual

Inherited from object

Syntax

Parameters

Returns

Type: bool

Equals Inherited

Inherited from object

Syntax

Parameters

Returns

Type: bool

GetHashCode Inherited Virtual

Inherited from object

Syntax

Returns

Type: int

GetType Inherited

Inherited from object

Syntax

Returns

Type: System.Type

MemberwiseClone Inherited

Inherited from object

Syntax

Returns

Type: object

ReferenceEquals Inherited

Inherited from object

Syntax

Parameters

Returns

Type: bool

ToString Inherited Virtual

Inherited from object

Syntax

Returns

Type: string?