Skip to content

SplatMicrosoftExtensions class

Defined in

Namespace: Splat.Microsoft.Extensions.DependencyInjection Assembly: Splat.Microsoft.Extensions.DependencyInjection.dll Full name: Splat.Microsoft.Extensions.DependencyInjection.SplatMicrosoftExtensions Modifiers: public static

Summary

View source

        Provides extension methods for integrating the Microsoft dependency injection system with Splat by configuring the
        application-wide dependency resolver.
        

Applies to

net10.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net9.0, net9.0-browserwasm1.0, net9.0-desktop1.0, net8.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, netstandard2.1, net462, net481

Remarks

These methods allow you to set or update the global dependency resolver used by Splat to leverage Microsoft.Extensions.DependencyInjection. Use these extensions to enable Splat services to be resolved from your application's IServiceCollection or IServiceProvider. Only one resolver can be active at a time; calling these methods will replace any existing resolver.

Methods

NameSummary
static UseMicrosoftDependencyResolver
Inherited members

Extension blocks

extension(IServiceCollection serviceCollection)

  • UseMicrosoftDependencyResolver

extension(IServiceProvider serviceProvider)

  • UseMicrosoftDependencyResolver