ServiceCollectionContainerBuilderExtensions.BuildServiceProvider Metod

Definition

Överlagringar

Name Description
BuildServiceProvider(IServiceCollection)

Skapar en ServiceProvider innehållande tjänster från den angivna IServiceCollection.

BuildServiceProvider(IServiceCollection, ServiceProviderOptions)

Skapar en ServiceProvider innehållande tjänster från den tillhandahållna IServiceCollection valfritt aktivera omfångsvalidering.

BuildServiceProvider(IServiceCollection, Boolean)

Skapar en ServiceProvider innehållande tjänster från den tillhandahållna IServiceCollection valfritt aktivera omfångsvalidering.

BuildServiceProvider(IServiceCollection)

Källa:
ServiceCollectionContainerBuilderExtensions.cs
Källa:
ServiceCollectionContainerBuilderExtensions.cs
Källa:
ServiceCollectionContainerBuilderExtensions.cs
Källa:
ServiceCollectionContainerBuilderExtensions.cs

Skapar en ServiceProvider innehållande tjänster från den angivna IServiceCollection.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::ServiceProvider ^ BuildServiceProvider(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services);
public static Microsoft.Extensions.DependencyInjection.ServiceProvider BuildServiceProvider(this Microsoft.Extensions.DependencyInjection.IServiceCollection services);
static member BuildServiceProvider : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.ServiceProvider
<Extension()>
Public Function BuildServiceProvider (services As IServiceCollection) As ServiceProvider

Parametrar

services
IServiceCollection

De IServiceCollection som innehåller tjänstbeskrivningar.

Returer

ServiceProvider.

Gäller för

BuildServiceProvider(IServiceCollection, ServiceProviderOptions)

Källa:
ServiceCollectionContainerBuilderExtensions.cs
Källa:
ServiceCollectionContainerBuilderExtensions.cs
Källa:
ServiceCollectionContainerBuilderExtensions.cs
Källa:
ServiceCollectionContainerBuilderExtensions.cs

Skapar en ServiceProvider innehållande tjänster från den tillhandahållna IServiceCollection valfritt aktivera omfångsvalidering.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::ServiceProvider ^ BuildServiceProvider(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Microsoft::Extensions::DependencyInjection::ServiceProviderOptions ^ options);
public static Microsoft.Extensions.DependencyInjection.ServiceProvider BuildServiceProvider(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Microsoft.Extensions.DependencyInjection.ServiceProviderOptions options);
static member BuildServiceProvider : Microsoft.Extensions.DependencyInjection.IServiceCollection * Microsoft.Extensions.DependencyInjection.ServiceProviderOptions -> Microsoft.Extensions.DependencyInjection.ServiceProvider
<Extension()>
Public Function BuildServiceProvider (services As IServiceCollection, options As ServiceProviderOptions) As ServiceProvider

Parametrar

services
IServiceCollection

De IServiceCollection som innehåller tjänstbeskrivningar.

options
ServiceProviderOptions

Konfigurerar olika beteenden för tjänstleverantörer.

Returer

ServiceProvider.

Gäller för

BuildServiceProvider(IServiceCollection, Boolean)

Källa:
ServiceCollectionContainerBuilderExtensions.cs
Källa:
ServiceCollectionContainerBuilderExtensions.cs
Källa:
ServiceCollectionContainerBuilderExtensions.cs
Källa:
ServiceCollectionContainerBuilderExtensions.cs

Skapar en ServiceProvider innehållande tjänster från den tillhandahållna IServiceCollection valfritt aktivera omfångsvalidering.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::ServiceProvider ^ BuildServiceProvider(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, bool validateScopes);
public static Microsoft.Extensions.DependencyInjection.ServiceProvider BuildServiceProvider(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, bool validateScopes);
static member BuildServiceProvider : Microsoft.Extensions.DependencyInjection.IServiceCollection * bool -> Microsoft.Extensions.DependencyInjection.ServiceProvider
<Extension()>
Public Function BuildServiceProvider (services As IServiceCollection, validateScopes As Boolean) As ServiceProvider

Parametrar

services
IServiceCollection

De IServiceCollection som innehåller tjänstbeskrivningar.

validateScopes
Boolean

true för att kontrollera att begränsade tjänster aldrig löses från rotprovidern. annars false.

Returer

ServiceProvider.

Gäller för