Definition
Assembly: CloudNimble.BlazorEssentials.dll Namespace: CloudNimble.BlazorEssentials Inheritance: CloudNimble.BlazorEssentials.BlazorObservableSyntax
Summary
A base class for your Blazor MVVM implementation that gives you access to all the useful stuff Blazor and BlazorEssentials inject into the app.Type Parameters
TAppState-TConfig-
Constructors
.ctor
Creates a new instance of theViewModelBase2`.
Syntax
Parameters
| Name | Type | Description |
|---|---|---|
httpClientFactory | System.Net.Http.IHttpClientFactory | The IHttpClientFactory instance injected from the DI container. |
configuration | TConfig | The TConfig instance injected from the DI container. |
appState | TAppState | The TAppState instance injected from the DI container. |
stateHasChangedConfig | CloudNimble.BlazorEssentials.StateHasChangedConfig | - |
.ctor Inherited
Inherited from
CloudNimble.BlazorEssentials.BlazorObservableSyntax
Parameters
| Name | Type | Description |
|---|---|---|
stateHasChangedConfig | CloudNimble.BlazorEssentials.StateHasChangedConfig | - |
Properties
AppState
The injected AppStateBase instance for the ViewModel.Syntax
Property Value
Type:TAppState
Configuration
The injectedConfigurationBase instance for the ViewModel.
Syntax
Property Value
Type:TConfig
DelayDispatcher
Syntax
Property Value
Type:CloudNimble.BlazorEssentials.Threading.DelayDispatcher
Remarks
This property is structured so that a new instance is not created unless specifically asked, to avoid unnecessary memory allocations.FilterCriteria
Allows you to set any additional filtering criteria for this ViewModels’ HTTP requests from inside the Page itself.Syntax
Property Value
Type:string
HttpClientFactory
The injected IHttpClientFactory instance for the ViewModel.Syntax
Property Value
Type:System.Net.Http.IHttpClientFactory
LoadingStatus Inherited
Inherited from
CloudNimble.BlazorEssentials.BlazorObservableSyntax
Property Value
Type:CloudNimble.BlazorEssentials.LoadingStatus
StateHasChanged Inherited
Inherited from
CloudNimble.BlazorEssentials.BlazorObservableSyntax
Property Value
Type:CloudNimble.BlazorEssentials.StateHasChangedConfig
Methods
Dispose Override
Inherited from
CloudNimble.BlazorEssentials.BlazorObservableSyntax
Parameters
| Name | Type | Description |
|---|---|---|
disposing | bool | - |