Skip to content

MicrosoftDependencyResolver() constructor

Defined in

Type: MicrosoftDependencyResolver Namespace: Splat.Microsoft.Extensions.DependencyInjection Assembly: Splat.Microsoft.Extensions.DependencyInjection.dll

Applies to

net11.0, net10.0, netstandard2.0, net47, net472, net471, net48, net481

Overloads

  1. public MicrosoftDependencyResolver()

  2. public MicrosoftDependencyResolver(IServiceCollection? services)

  3. public MicrosoftDependencyResolver(IServiceProvider serviceProvider)

1. Overload

public MicrosoftDependencyResolver()

View source

Summary: Initializes a new instance of the MicrosoftDependencyResolver class with a new IServiceCollection.

2. Overload

public MicrosoftDependencyResolver(IServiceCollection? services)

View source

Summary: Initializes a new instance of the MicrosoftDependencyResolver class with an IServiceCollection.

Parameters

NameTypeDescription
servicesIServiceCollection?An instance of IServiceCollection.

3. Overload

public MicrosoftDependencyResolver(IServiceProvider serviceProvider)

View source

Summary: Initializes a new instance of the MicrosoftDependencyResolver class with a configured service Provider.

Parameters

NameTypeDescription
serviceProviderIServiceProviderA ready to use service provider.