Skip to main content

Definition

Assembly: CloudNimble.BlazorEssentials.dll Namespace: CloudNimble.BlazorEssentials Inheritance: CloudNimble.BlazorEssentials.BlazorObservable

Syntax

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 the ViewModelBase2`.

Syntax

Parameters

.ctor Inherited

Inherited from CloudNimble.BlazorEssentials.BlazorObservable
Creates a new instance of the BlazorObservable class.

Syntax

Parameters

Properties

AppState

The injected AppStateBase instance for the ViewModel.

Syntax

Property Value

Type: TAppState

Configuration

The injected ConfigurationBase 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.BlazorObservable
A BlazorObservable.LoadingStatus specifying the current state of the required data for this Observable.

Syntax

Property Value

Type: CloudNimble.BlazorEssentials.LoadingStatus

StateHasChanged Inherited

Inherited from CloudNimble.BlazorEssentials.BlazorObservable
Determines how to trigger StateHasChanged events in a Blazor component.

Syntax

Property Value

Type: CloudNimble.BlazorEssentials.StateHasChangedConfig

Methods

Dispose Override

Inherited from CloudNimble.BlazorEssentials.BlazorObservable

Syntax

Parameters