Table of Contents

Class SplatMicrosoftExtensions

Namespace
Splat.Microsoft.Extensions.DependencyInjection
Assembly
Splat.Microsoft.Extensions.DependencyInjection.dll

Extension methods for MicrosoftDependencyResolver.

public static class SplatMicrosoftExtensions
Inheritance
SplatMicrosoftExtensions

Methods

UseMicrosoftDependencyResolver(IServiceCollection)

Initializes an instance of MicrosoftDependencyResolver that overrides the default Locator.

public static void UseMicrosoftDependencyResolver(this IServiceCollection serviceCollection)

Parameters

serviceCollection IServiceCollection

The IServiceCollection.

UseMicrosoftDependencyResolver(IServiceProvider)

Initializes an instance of MicrosoftDependencyResolver that overrides the default Locator with a built IServiceProvider.

public static void UseMicrosoftDependencyResolver(this IServiceProvider serviceProvider)

Parameters

serviceProvider IServiceProvider

The IServiceProvider.

Remarks

If there is already a MicrosoftDependencyResolver serving as the Current, it'll instead update it to use the specified serviceProvider.