ConfigurationBase

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.

Syntax

public class ConfigurationBase

Inheritance

Properties

ApiClientName

public string ApiClientName { get; set; }
The name of the HttpClient that will be used to hit the app’s Public API.

Returns

string

ApiRoot

[HttpEndpoint("ApiClientName")]
public string ApiRoot { get; set; }
The root of the API that your Blazor app will call.

Returns

string

AppClientName

public string AppClientName { get; set; }
The name of the HttpClient that will be used to hit the Blazor App’s Controllers.

Returns

string

AppRoot

[HttpEndpoint("AppClientName")]
public string AppRoot { get; set; }
The website your Blazor app is being served from.

Returns

string

HttpHandlerMode

public HttpHandlerMode HttpHandlerMode { get; set; }
Determines how HttpClient message handlers are configured when registering HTTP clients. Controls whether handlers are added to existing handlers or replace them entirely.

Returns

HttpHandlerMode

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 instead.