Skip to content

MicrosoftDependencyResolver.UpdateContainer(IServiceCollection) method

Defined in

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

Applies to

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

Overloads

  • 1. public void UpdateContainer(IServiceCollection services)
  • 2. public void UpdateContainer(IServiceProvider serviceProvider)

1. Overload

public void UpdateContainer(IServiceCollection services)

View source

Summary: Updates this instance with a collection of configured services.

Parameters

NameTypeDescription
servicesIServiceCollectionAn instance of IServiceCollection.

2. Overload

public void UpdateContainer(IServiceProvider serviceProvider)

View source

Summary: Updates this instance with a configured service Provider.

Parameters

NameTypeDescription
serviceProviderIServiceProviderA ready to use service provider.