Table of Contents

Class ServicesExtension

Namespace
Blazing.Mvvm
Assembly
Blazing.Mvvm.dll

Provides extension methods for IServiceCollection to add the required services for Blazing.Mvvm.

public static class ServicesExtension

Inheritance

Methods

AddMvvm(IServiceCollection, Action<LibraryConfiguration>?)

Adds the required services for Blazing.Mvvm to the specified IServiceCollection.

public static IServiceCollection AddMvvm(this IServiceCollection services, Action<LibraryConfiguration>? configuration = null)

Parameters

services IServiceCollection

The IServiceCollection instance to add services to.

configuration Action<LibraryConfiguration>?

An optional action to configure the LibraryConfiguration.

Returns

IServiceCollection

The IServiceCollection instance for chaining.

Exceptions

ArgumentNullException

Thrown when services is null.

ArgumentOutOfRangeException

Thrown when HostingModelType is not within the defined range.

InvalidOperationException

Thrown when a view model has a generic ViewModelDefinitionAttribute<TViewModel> attribute but does not implement the generic type.