Definition
Assembly: CloudNimble.EasyAF.Configuration.dll Namespace: CloudNimble.EasyAF.Configuration Inheritance: System.ObjectSyntax
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
objectSyntax
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
objectSyntax
Parameters
| Name | Type | Description |
|---|---|---|
obj | object? | - |
Returns
Type:bool
Equals Inherited
Inherited from
objectSyntax
Parameters
| Name | Type | Description |
|---|---|---|
objA | object? | - |
objB | object? | - |
Returns
Type:bool
GetHashCode Inherited Virtual
Inherited from
objectSyntax
Returns
Type:int
GetType Inherited
Inherited from
objectSyntax
Returns
Type:System.Type
MemberwiseClone Inherited
Inherited from
objectSyntax
Returns
Type:object
ReferenceEquals Inherited
Inherited from
objectSyntax
Parameters
| Name | Type | Description |
|---|---|---|
objA | object? | - |
objB | object? | - |
Returns
Type:bool
ToString Inherited Virtual
Inherited from
objectSyntax
Returns
Type:string?