IServiceCollection Arabirim

Tanım

Hizmet tanımlayıcıları koleksiyonu için sözleşmeyi belirtir.Specifies the contract for a collection of service descriptors.

public interface class IServiceCollection : System::Collections::Generic::ICollection<Microsoft::Extensions::DependencyInjection::ServiceDescriptor ^>, System::Collections::Generic::IEnumerable<Microsoft::Extensions::DependencyInjection::ServiceDescriptor ^>, System::Collections::Generic::IList<Microsoft::Extensions::DependencyInjection::ServiceDescriptor ^>
public interface IServiceCollection : System.Collections.Generic.ICollection<Microsoft.Extensions.DependencyInjection.ServiceDescriptor>, System.Collections.Generic.IEnumerable<Microsoft.Extensions.DependencyInjection.ServiceDescriptor>, System.Collections.Generic.IList<Microsoft.Extensions.DependencyInjection.ServiceDescriptor>
type IServiceCollection = interface
    interface IList<ServiceDescriptor>
    interface ICollection<ServiceDescriptor>
    interface seq<ServiceDescriptor>
    interface IEnumerable
type IServiceCollection = interface
    interface ICollection<ServiceDescriptor>
    interface seq<ServiceDescriptor>
    interface IEnumerable
    interface IList<ServiceDescriptor>
Public Interface IServiceCollection
Implements ICollection(Of ServiceDescriptor), IEnumerable(Of ServiceDescriptor), IList(Of ServiceDescriptor)
Türetilmiş
Uygulamalar

Özellikler

Count

ICollection<T> içindeki öğe sayısını alır.Gets the number of elements contained in the ICollection<T>.

(Devralındığı yer: ICollection<T>)
IsReadOnly

ICollection<T> öğesinin salt okunur olup olmadığını belirten bir değer alır.Gets a value indicating whether the ICollection<T> is read-only.

(Devralındığı yer: ICollection<T>)
Item[Int32]

Belirtilen dizindeki öğeyi alır veya ayarlar.Gets or sets the element at the specified index.

(Devralındığı yer: IList<T>)

Yöntemler

Add(T)

Öğesine bir öğe ekler ICollection<T> .Adds an item to the ICollection<T>.

(Devralındığı yer: ICollection<T>)
Clear()

Tüm öğeleri öğesinden kaldırır ICollection<T> .Removes all items from the ICollection<T>.

(Devralındığı yer: ICollection<T>)
Contains(T)

' In ICollection<T> belirli bir değer içerip içermediğini belirler.Determines whether the ICollection<T> contains a specific value.

(Devralındığı yer: ICollection<T>)
CopyTo(T[], Int32)

Öğesinin öğelerini ICollection<T> Array belirli bir dizinden başlayarak öğesine kopyalar Array .Copies the elements of the ICollection<T> to an Array, starting at a particular Array index.

(Devralındığı yer: ICollection<T>)
GetEnumerator()

Bir toplulukta tekrarlanan bir numaralandırıcı döndürür.Returns an enumerator that iterates through a collection.

(Devralındığı yer: IEnumerable)
IndexOf(T)

İçindeki belirli bir öğenin dizinini belirler IList<T> .Determines the index of a specific item in the IList<T>.

(Devralındığı yer: IList<T>)
Insert(Int32, T)

Belirtilen dizindeki öğesine bir öğe ekler IList<T> .Inserts an item to the IList<T> at the specified index.

(Devralındığı yer: IList<T>)
Remove(T)

İçindeki belirli bir nesnenin ilk oluşumunu kaldırır ICollection<T> .Removes the first occurrence of a specific object from the ICollection<T>.

(Devralındığı yer: ICollection<T>)
RemoveAt(Int32)

IList<T>Belirtilen dizindeki öğeyi kaldırır.Removes the IList<T> item at the specified index.

(Devralındığı yer: IList<T>)

Uzantı Metotları

AddWebEncoders(IServiceCollection)

HtmlEncoder, JavaScriptEncoder Ve UrlEncoder belirtilen öğesine ekler services .Adds HtmlEncoder, JavaScriptEncoder and UrlEncoder to the specified services.

AddWebEncoders(IServiceCollection, Action<WebEncoderOptions>)

HtmlEncoder, JavaScriptEncoder Ve UrlEncoder belirtilen öğesine ekler services .Adds HtmlEncoder, JavaScriptEncoder and UrlEncoder to the specified services.

Add(IServiceCollection, ServiceDescriptor)

Öğesine belirtilen öğesini ekler descriptor collection .Adds the specified descriptor to the collection.

Add(IServiceCollection, IEnumerable<ServiceDescriptor>)

Öğesine bir sırası ekler ServiceDescriptor collection .Adds a sequence of ServiceDescriptor to the collection.

RemoveAll(IServiceCollection, Type)

İçindeki türündeki tüm hizmetleri kaldırır serviceType IServiceCollection .Removes all services of type serviceType in IServiceCollection.

RemoveAll<T>(IServiceCollection)

İçindeki türündeki tüm hizmetleri kaldırır T IServiceCollection .Removes all services of type T in IServiceCollection.

Replace(IServiceCollection, ServiceDescriptor)

İçindeki ilk hizmeti IServiceCollection ile aynı hizmet türüyle kaldırır descriptor ve descriptor koleksiyona ekler.Removes the first service in IServiceCollection with the same service type as descriptor and adds descriptor to the collection.

TryAdd(IServiceCollection, ServiceDescriptor)

descriptor collection Hizmet türü henüz kayıtlı değilse, belirtilen öğesine ekler.Adds the specified descriptor to the collection if the service type hasn't already been registered.

TryAdd(IServiceCollection, IEnumerable<ServiceDescriptor>)

descriptors collection Hizmet türü henüz kayıtlı değilse, belirtilen öğesine ekler.Adds the specified descriptors to the collection if the service type hasn't already been registered.

TryAddEnumerable(IServiceCollection, ServiceDescriptor)

ServiceDescriptorAynı ServiceType ve içinde mevcut olmayan bir uygulama ile mevcut bir tanımlayıcı varsa, bir ekler services .Adds a ServiceDescriptor if an existing descriptor with the same ServiceType and an implementation that does not already exist in services.

TryAddEnumerable(IServiceCollection, IEnumerable<ServiceDescriptor>)

Var olan bir ServiceDescriptor tanımlayıcı aynı ServiceType ve içinde mevcut olmayan bir uygulamayla, belirtilen öğeleri ekler services .Adds the specified ServiceDescriptors if an existing descriptor with the same ServiceType and an implementation that does not already exist in services.

TryAddScoped(IServiceCollection, Type)

service Scoped collection Hizmet türü henüz kayıtlı değilse, hizmet olarak belirtilen bir hizmeti olarak ekler.Adds the specified service as a Scoped service to the collection if the service type hasn't already been registered.

TryAddScoped(IServiceCollection, Type, Func<IServiceProvider,Object>)

service Scoped implementationFactory collection Hizmeti türü zaten kayıtlı değilse, ' de belirtilen fabrikayı kullanarak belirtilen bir hizmet olarak ekler.Adds the specified service as a Scoped service using the factory specified in implementationFactory to the collection if the service type hasn't already been registered.

TryAddScoped(IServiceCollection, Type, Type)

service Scoped implementationType collection Hizmet türü henüz kayıtlı değilse, uygulamasına uygulamayla birlikte belirtilen bir hizmet olarak ekler.Adds the specified service as a Scoped service with the implementationType implementation to the collection if the service type hasn't already been registered.

TryAddScoped<TService>(IServiceCollection)

TService Scoped collection Hizmet türü henüz kayıtlı değilse, hizmet olarak belirtilen bir hizmeti olarak ekler.Adds the specified TService as a Scoped service to the collection if the service type hasn't already been registered.

TryAddScoped<TService>(IServiceCollection, Func<IServiceProvider,TService>)

TService Scoped implementationFactory services Hizmeti türü zaten kayıtlı değilse, ' de belirtilen fabrikayı kullanarak belirtilen bir hizmet olarak ekler.Adds the specified TService as a Scoped service using the factory specified in implementationFactory to the services if the service type hasn't already been registered.

TryAddScoped<TService,TImplementation>(IServiceCollection)

TService Scoped ' De belirtilen hizmet uygulama türü olarak belirtilen hizmet TImplementation collection türü zaten kayıtlı değilse öğesine ekler.Adds the specified TService as a Scoped service implementation type specified in TImplementation to the collection if the service type hasn't already been registered.

TryAddSingleton(IServiceCollection, Type)

service Singleton collection Hizmet türü henüz kayıtlı değilse, hizmet olarak belirtilen bir hizmeti olarak ekler.Adds the specified service as a Singleton service to the collection if the service type hasn't already been registered.

TryAddSingleton(IServiceCollection, Type, Func<IServiceProvider,Object>)

service Singleton implementationFactory collection Hizmeti türü zaten kayıtlı değilse, ' de belirtilen fabrikayı kullanarak belirtilen bir hizmet olarak ekler.Adds the specified service as a Singleton service using the factory specified in implementationFactory to the collection if the service type hasn't already been registered.

TryAddSingleton(IServiceCollection, Type, Type)

service Singleton implementationType collection Hizmet türü henüz kayıtlı değilse, uygulamasına uygulamayla birlikte belirtilen bir hizmet olarak ekler.Adds the specified service as a Singleton service with the implementationType implementation to the collection if the service type hasn't already been registered.

TryAddSingleton<TService>(IServiceCollection)

TService Singleton collection Hizmet türü henüz kayıtlı değilse, hizmet olarak belirtilen bir hizmeti olarak ekler.Adds the specified TService as a Singleton service to the collection if the service type hasn't already been registered.

TryAddSingleton<TService>(IServiceCollection, TService)

TService Singleton instance collection Hizmet türü zaten kayıtlı değilse, ' de belirtilen bir örneğe sahip bir hizmet olarak belirtilen bir hizmet olarak ekler.Adds the specified TService as a Singleton service with an instance specified in instance to the collection if the service type hasn't already been registered.

TryAddSingleton<TService>(IServiceCollection, Func<IServiceProvider,TService>)

TService Singleton implementationFactory services Hizmeti türü zaten kayıtlı değilse, ' de belirtilen fabrikayı kullanarak belirtilen bir hizmet olarak ekler.Adds the specified TService as a Singleton service using the factory specified in implementationFactory to the services if the service type hasn't already been registered.

TryAddSingleton<TService,TImplementation>(IServiceCollection)

TService Singleton ' De belirtilen hizmet uygulama türü olarak belirtilen hizmet TImplementation collection türü zaten kayıtlı değilse öğesine ekler.Adds the specified TService as a Singleton service implementation type specified in TImplementation to the collection if the service type hasn't already been registered.

TryAddTransient(IServiceCollection, Type)

service Transient collection Hizmet türü henüz kayıtlı değilse, hizmet olarak belirtilen bir hizmeti olarak ekler.Adds the specified service as a Transient service to the collection if the service type hasn't already been registered.

TryAddTransient(IServiceCollection, Type, Func<IServiceProvider,Object>)

service Transient implementationFactory collection Hizmeti türü zaten kayıtlı değilse, ' de belirtilen fabrikayı kullanarak belirtilen bir hizmet olarak ekler.Adds the specified service as a Transient service using the factory specified in implementationFactory to the collection if the service type hasn't already been registered.

TryAddTransient(IServiceCollection, Type, Type)

service Transient implementationType collection Hizmet türü henüz kayıtlı değilse, uygulamasına uygulamayla birlikte belirtilen bir hizmet olarak ekler.Adds the specified service as a Transient service with the implementationType implementation to the collection if the service type hasn't already been registered.

TryAddTransient<TService>(IServiceCollection)

TService Transient collection Hizmet türü henüz kayıtlı değilse, hizmet olarak belirtilen bir hizmeti olarak ekler.Adds the specified TService as a Transient service to the collection if the service type hasn't already been registered.

TryAddTransient<TService>(IServiceCollection, Func<IServiceProvider,TService>)

TService Transient implementationFactory services Hizmeti türü zaten kayıtlı değilse, ' de belirtilen fabrikayı kullanarak belirtilen bir hizmet olarak ekler.Adds the specified TService as a Transient service using the factory specified in implementationFactory to the services if the service type hasn't already been registered.

TryAddTransient<TService,TImplementation>(IServiceCollection)

TService Transient ' De belirtilen hizmet uygulama türü olarak belirtilen hizmet TImplementation collection türü zaten kayıtlı değilse öğesine ekler.Adds the specified TService as a Transient service implementation type specified in TImplementation to the collection if the service type hasn't already been registered.

AddHealthChecks(IServiceCollection)

HealthCheckServiceSistem durumu denetimlerini kaydetmek için belirtilen temsilciyi kullanarak kapsayıcısını kapsayıcısına ekler.Adds the HealthCheckService to the container, using the provided delegate to register health checks.

AddHttpClient(IServiceCollection)

IHttpClientFactoryVe ilgili hizmetlerini öğesine ekler IServiceCollection .Adds the IHttpClientFactory and related services to the IServiceCollection.

AddHttpClient(IServiceCollection, String)

IHttpClientFactoryVe ilgili hizmetlerini öğesine ekler IServiceCollection ve adlandırılmış bir adı yapılandırır HttpClient .Adds the IHttpClientFactory and related services to the IServiceCollection and configures a named HttpClient.

AddHttpClient(IServiceCollection, String, Action<IServiceProvider,HttpClient>)

IHttpClientFactoryVe ilgili hizmetlerini öğesine ekler IServiceCollection ve adlandırılmış bir adı yapılandırır HttpClient .Adds the IHttpClientFactory and related services to the IServiceCollection and configures a named HttpClient.

AddHttpClient(IServiceCollection, String, Action<HttpClient>)

IHttpClientFactoryVe ilgili hizmetlerini öğesine ekler IServiceCollection ve adlandırılmış bir adı yapılandırır HttpClient .Adds the IHttpClientFactory and related services to the IServiceCollection and configures a named HttpClient.

AddHttpClient<TClient>(IServiceCollection)

Ve ile IHttpClientFactory ilgili hizmetleri öğesine ekler ve IServiceCollection türü ile adlı bir bağlamayı yapılandırır TClient HttpClient .Adds the IHttpClientFactory and related services to the IServiceCollection and configures a binding between the TClient type and a named HttpClient. İstemci adı, tam adına ayarlanır TClient .The client name will be set to the full name of TClient.

AddHttpClient<TClient>(IServiceCollection, Action<IServiceProvider,HttpClient>)

Ve ile IHttpClientFactory ilgili hizmetleri öğesine ekler ve IServiceCollection türü ile adlı bir bağlamayı yapılandırır TClient HttpClient .Adds the IHttpClientFactory and related services to the IServiceCollection and configures a binding between the TClient type and a named HttpClient. İstemci adı, tür adına ayarlanır TClient .The client name will be set to the type name of TClient.

AddHttpClient<TClient>(IServiceCollection, Action<HttpClient>)

Ve ile IHttpClientFactory ilgili hizmetleri öğesine ekler ve IServiceCollection türü ile adlı bir bağlamayı yapılandırır TClient HttpClient .Adds the IHttpClientFactory and related services to the IServiceCollection and configures a binding between the TClient type and a named HttpClient. İstemci adı, tür adına ayarlanır TClient .The client name will be set to the type name of TClient.

AddHttpClient<TClient>(IServiceCollection, String)

Ve ile IHttpClientFactory ilgili hizmetleri öğesine ekler ve IServiceCollection türü ile adlı bir bağlamayı yapılandırır TClient HttpClient .Adds the IHttpClientFactory and related services to the IServiceCollection and configures a binding between the TClient type and a named HttpClient.

AddHttpClient<TClient>(IServiceCollection, String, Action<IServiceProvider,HttpClient>)

Ve ile IHttpClientFactory ilgili hizmetleri öğesine ekler ve IServiceCollection türü ile adlı bir bağlamayı yapılandırır TClient HttpClient .Adds the IHttpClientFactory and related services to the IServiceCollection and configures a binding between the TClient type and a named HttpClient.

AddHttpClient<TClient>(IServiceCollection, String, Action<HttpClient>)

Ve ile IHttpClientFactory ilgili hizmetleri öğesine ekler ve IServiceCollection türü ile adlı bir bağlamayı yapılandırır TClient HttpClient .Adds the IHttpClientFactory and related services to the IServiceCollection and configures a binding between the TClient type and a named HttpClient.

AddHttpClient<TClient,TImplementation>(IServiceCollection)

Ve ile IHttpClientFactory ilgili hizmetleri öğesine ekler ve IServiceCollection türü ile adlı bir bağlamayı yapılandırır TClient HttpClient .Adds the IHttpClientFactory and related services to the IServiceCollection and configures a binding between the TClient type and a named HttpClient. İstemci adı, tür adına ayarlanır TClient .The client name will be set to the type name of TClient.

AddHttpClient<TClient,TImplementation>(IServiceCollection, Action<IServiceProvider,HttpClient>)

Ve ile IHttpClientFactory ilgili hizmetleri öğesine ekler ve IServiceCollection türü ile adlı bir bağlamayı yapılandırır TClient HttpClient .Adds the IHttpClientFactory and related services to the IServiceCollection and configures a binding between the TClient type and a named HttpClient. İstemci adı, tür adına ayarlanır TClient .The client name will be set to the type name of TClient.

AddHttpClient<TClient,TImplementation>(IServiceCollection, Action<HttpClient>)

Ve ile IHttpClientFactory ilgili hizmetleri öğesine ekler ve IServiceCollection türü ile adlı bir bağlamayı yapılandırır TClient HttpClient .Adds the IHttpClientFactory and related services to the IServiceCollection and configures a binding between the TClient type and a named HttpClient. İstemci adı, tür adına ayarlanır TClient .The client name will be set to the type name of TClient.

AddHttpClient<TClient,TImplementation>(IServiceCollection, Func<HttpClient,TImplementation>)

Ve ile IHttpClientFactory ilgili hizmetleri öğesine ekler ve IServiceCollection türü ile adlı bir bağlamayı yapılandırır TClient HttpClient .Adds the IHttpClientFactory and related services to the IServiceCollection and configures a binding between the TClient type and a named HttpClient.

AddHttpClient<TClient,TImplementation>(IServiceCollection, Func<HttpClient,IServiceProvider,TImplementation>)

Ve ile IHttpClientFactory ilgili hizmetleri öğesine ekler ve IServiceCollection türü ile adlı bir bağlamayı yapılandırır TClient HttpClient .Adds the IHttpClientFactory and related services to the IServiceCollection and configures a binding between the TClient type and a named HttpClient.

AddHttpClient<TClient,TImplementation>(IServiceCollection, String)

Ve ile IHttpClientFactory ilgili hizmetleri öğesine ekler ve IServiceCollection türü ile adlı bir bağlamayı yapılandırır TClient HttpClient .Adds the IHttpClientFactory and related services to the IServiceCollection and configures a binding between the TClient type and a named HttpClient. İstemci adı, tür adına ayarlanır TClient .The client name will be set to the type name of TClient.

AddHttpClient<TClient,TImplementation>(IServiceCollection, String, Action<IServiceProvider,HttpClient>)

Ve ile IHttpClientFactory ilgili hizmetleri öğesine ekler ve IServiceCollection türü ile adlı bir bağlamayı yapılandırır TClient HttpClient .Adds the IHttpClientFactory and related services to the IServiceCollection and configures a binding between the TClient type and a named HttpClient.

AddHttpClient<TClient,TImplementation>(IServiceCollection, String, Action<HttpClient>)

Ve ile IHttpClientFactory ilgili hizmetleri öğesine ekler ve IServiceCollection türü ile adlı bir bağlamayı yapılandırır TClient HttpClient .Adds the IHttpClientFactory and related services to the IServiceCollection and configures a binding between the TClient type and a named HttpClient.

AddHttpClient<TClient,TImplementation>(IServiceCollection, String, Func<HttpClient,TImplementation>)

Ve ile IHttpClientFactory ilgili hizmetleri öğesine ekler ve IServiceCollection türü ile adlı bir bağlamayı yapılandırır TClient HttpClient .Adds the IHttpClientFactory and related services to the IServiceCollection and configures a binding between the TClient type and a named HttpClient.

AddHttpClient<TClient,TImplementation>(IServiceCollection, String, Func<HttpClient,IServiceProvider,TImplementation>)

Ve ile IHttpClientFactory ilgili hizmetleri öğesine ekler ve IServiceCollection türü ile adlı bir bağlamayı yapılandırır TClient HttpClient .Adds the IHttpClientFactory and related services to the IServiceCollection and configures a binding between the TClient type and a named HttpClient.

AddLocalization(IServiceCollection)

Uygulama yerelleştirmesi için gereken hizmetleri ekler.Adds services required for application localization.

AddLocalization(IServiceCollection, Action<LocalizationOptions>)

Uygulama yerelleştirmesi için gereken hizmetleri ekler.Adds services required for application localization.

AddLogging(IServiceCollection)

Günlük hizmetlerini belirtilen öğesine ekler IServiceCollection .Adds logging services to the specified IServiceCollection.

AddLogging(IServiceCollection, Action<ILoggingBuilder>)

Günlük hizmetlerini belirtilen öğesine ekler IServiceCollection .Adds logging services to the specified IServiceCollection.

AddDistributedMemoryCache(IServiceCollection)

IDistributedCache, Öğeleri bellekte depolayan varsayılan bir uygulamasını öğesine ekler IServiceCollection .Adds a default implementation of IDistributedCache that stores items in memory to the IServiceCollection. Bir dağıtılmış önbelleğin çalışması gereken çerçeveler, en az bir uygulamanın kullanılabilir olmasını sağlamak için bu bağımlılığı bağımlılık listesinin bir parçası olarak güvenli bir şekilde ekleyebilirler.Frameworks that require a distributed cache to work can safely add this dependency as part of their dependency list to ensure that there is at least one implementation available.

AddDistributedMemoryCache(IServiceCollection, Action<MemoryDistributedCacheOptions>)

IDistributedCache, Öğeleri bellekte depolayan varsayılan bir uygulamasını öğesine ekler IServiceCollection .Adds a default implementation of IDistributedCache that stores items in memory to the IServiceCollection. Bir dağıtılmış önbelleğin çalışması gereken çerçeveler, en az bir uygulamanın kullanılabilir olmasını sağlamak için bu bağımlılığı bağımlılık listesinin bir parçası olarak güvenli bir şekilde ekleyebilirler.Frameworks that require a distributed cache to work can safely add this dependency as part of their dependency list to ensure that there is at least one implementation available.

AddMemoryCache(IServiceCollection)

' Nin bellek halinde uygulamasına dağıtılmamış bir uygulamasına ekler IMemoryCache IServiceCollection .Adds a non distributed in memory implementation of IMemoryCache to the IServiceCollection.

AddMemoryCache(IServiceCollection, Action<MemoryCacheOptions>)

' Nin bellek halinde uygulamasına dağıtılmamış bir uygulamasına ekler IMemoryCache IServiceCollection .Adds a non distributed in memory implementation of IMemoryCache to the IServiceCollection.

Configure<TOptions>(IServiceCollection, IConfiguration)

Bağlanılacak bir yapılandırma örneği kaydeder TOptions ve yapılandırma değiştiğinde seçenekleri günceller.Registers a configuration instance that TOptions will bind against, and updates the options when the configuration changes.

Configure<TOptions>(IServiceCollection, IConfiguration, Action<BinderOptions>)

TOptions 'ın bağlanacağı bir yapılandırma örneği kaydeder.Registers a configuration instance which TOptions will bind against.

Configure<TOptions>(IServiceCollection, String, IConfiguration)

TOptions 'ın bağlanacağı bir yapılandırma örneği kaydeder.Registers a configuration instance which TOptions will bind against.

Configure<TOptions>(IServiceCollection, String, IConfiguration, Action<BinderOptions>)

TOptions 'ın bağlanacağı bir yapılandırma örneği kaydeder.Registers a configuration instance which TOptions will bind against.

AddOptions(IServiceCollection)

Seçenekleri kullanmak için gereken hizmetleri ekler.Adds services required for using options.

AddOptions<TOptions>(IServiceCollection)

, TOptions Temel alınan hizmet koleksiyonuna aynı ada sahip yapılandırma çağrılarını ileten bir seçenek Oluşturucu alır.Gets an options builder that forwards Configure calls for the same named TOptions to the underlying service collection.

AddOptions<TOptions>(IServiceCollection, String)

, TOptions Temel alınan hizmet koleksiyonuna aynı ada sahip yapılandırma çağrılarını ileten bir seçenek Oluşturucu alır.Gets an options builder that forwards Configure calls for the same named TOptions to the underlying service collection.

Configure<TOptions>(IServiceCollection, Action<TOptions>)

Başlangıç sırasında belirli bir tür seçenekleri yapılandırmak için kullanılan bir eylemi kaydeder.Registers an action used to configure a particular type of options once during startup. Bu, daha önce çalıştırılır PostConfigure<TOptions>(IServiceCollection, Action<TOptions>) .This is run before PostConfigure<TOptions>(IServiceCollection, Action<TOptions>). Yapılandırma güncelleştirmeleri eylemi yeniden çağırmaz.Updates to the configuration does not invoke the action again.

Configure<TOptions>(IServiceCollection, String, Action<TOptions>)

Belirli bir seçenek türünü yapılandırmak için kullanılan bir eylemi kaydeder.Registers an action used to configure a particular type of options. Bunlar daha önce çalıştırılır PostConfigure<TOptions>(IServiceCollection, Action<TOptions>) .These are run before PostConfigure<TOptions>(IServiceCollection, Action<TOptions>).

ConfigureAll<TOptions>(IServiceCollection, Action<TOptions>)

Belirli bir seçenek türünün tüm örneklerini yapılandırmak için kullanılan bir eylemi kaydeder.Registers an action used to configure all instances of a particular type of options.

ConfigureOptions(IServiceCollection, Object)

Tüm ı [Post] ConfigureOptions 'a kaydedilecek bir nesneyi kaydeder.Registers an object that will have all of its I[Post]ConfigureOptions registered.

ConfigureOptions(IServiceCollection, Type)

Tüm ı [Post] ConfigureOptions 'a kaydedilecek bir tür kaydeder.Registers a type that will have all of its I[Post]ConfigureOptions registered.

ConfigureOptions<TConfigureOptions>(IServiceCollection)

Tüm ı [Post] ConfigureOptions 'a kaydedilecek bir tür kaydeder.Registers a type that will have all of its I[Post]ConfigureOptions registered.

PostConfigure<TOptions>(IServiceCollection, Action<TOptions>)

Belirli bir seçenek türünü başlatmak için kullanılan bir eylemi kaydeder.Registers an action used to initialize a particular type of options. Bunlar sonra çalıştırılır Configure<TOptions>(IServiceCollection, Action<TOptions>) .These are run after Configure<TOptions>(IServiceCollection, Action<TOptions>).

PostConfigure<TOptions>(IServiceCollection, String, Action<TOptions>)

Belirli bir seçenek türünü yapılandırmak için kullanılan bir eylemi kaydeder.Registers an action used to configure a particular type of options. Bunlar sonra çalıştırılır Configure<TOptions>(IServiceCollection, Action<TOptions>) .These are run after Configure<TOptions>(IServiceCollection, Action<TOptions>).

PostConfigureAll<TOptions>(IServiceCollection, Action<TOptions>)

Belirli bir seçenek türünün tüm örneklerini yapılandırmak için kullanılan bir eylemi kaydeder.Registers an action used to post configure all instances of a particular type of options. Bunlar sonra çalıştırılır Configure<TOptions>(IServiceCollection, Action<TOptions>) .These are run after Configure<TOptions>(IServiceCollection, Action<TOptions>).

AddPolicyRegistry(IServiceCollection)

Hizmet PolicyRegistry koleksiyonuna hizmet türlerine sahip boş bir kayıt kaydeder ve IPolicyRegistry<TKey> IReadOnlyPolicyRegistry<TKey> Yeni oluşturulan kayıt defterini döndürür.Registers an empty PolicyRegistry in the service collection with service types IPolicyRegistry<TKey>, and IReadOnlyPolicyRegistry<TKey> and returns the newly created registry.

AddPolicyRegistry(IServiceCollection, IPolicyRegistry<String>)

Hizmet koleksiyonuna, belirtilen IPolicyRegistry<TKey> kaydı hizmet türlerine kaydeder ve IPolicyRegistry<TKey> IReadOnlyPolicyRegistry<TKey> belirtilen kayıt defterini döndürür.Registers the provided IPolicyRegistry<TKey> in the service collection with service types IPolicyRegistry<TKey>, and IReadOnlyPolicyRegistry<TKey> and returns the provided registry.

AddDistributedRedisCache(IServiceCollection, Action<RedisCacheOptions>)

Belirtilen öğesine Redsıs dağıtılmış önbelleğe alma hizmetleri ekler IServiceCollection .Adds Redis distributed caching services to the specified IServiceCollection.

BuildServiceProvider(IServiceCollection)

ServiceProviderBelirtilen içinden içeren bir hizmet oluşturur IServiceCollection .Creates a ServiceProvider containing services from the provided IServiceCollection.

BuildServiceProvider(IServiceCollection, ServiceProviderOptions)

ServiceProvider IServiceCollection İsteğe bağlı olarak, hizmet oluşturma ve kapsam doğrulamasından olanak sağlayan, belirtilen bir hizmet içeren bir hizmet oluşturur.Creates a ServiceProvider containing services from the provided IServiceCollection optionally enabling service-creation and scope validation.

BuildServiceProvider(IServiceCollection, Boolean)

ServiceProvider IServiceCollection İsteğe bağlı olarak kapsam doğrulamasını etkinleştiren, belirtilen bir hizmet içeren bir hizmet oluşturur.Creates a ServiceProvider containing services from the provided IServiceCollection optionally enabling scope validation.

AddHostedService<THostedService>(IServiceCollection)

IHostedServiceVerilen tür için bir kayıt ekleyin.Add an IHostedService registration for the given type.

AddHostedService<THostedService>(IServiceCollection, Func<IServiceProvider,THostedService>)

IHostedServiceVerilen tür için bir kayıt ekleyin.Add an IHostedService registration for the given type.

AddScoped(IServiceCollection, Type)

İçinde belirtilen türün kapsamlı bir hizmetini serviceType belirtilen öğesine ekler IServiceCollection .Adds a scoped service of the type specified in serviceType to the specified IServiceCollection.

AddScoped(IServiceCollection, Type, Func<IServiceProvider,Object>)

' De belirtilen bir fabrikada belirtilen türde bir kapsamlı hizmet ekler serviceType implementationFactory IServiceCollection .Adds a scoped service of the type specified in serviceType with a factory specified in implementationFactory to the specified IServiceCollection.

AddScoped(IServiceCollection, Type, Type)

İçinde belirtilen türün bir kapsamlı bir hizmetini serviceType , içinde belirtilen türün bir uygulamasıyla belirtilen bir uygulamayla ekler implementationType IServiceCollection .Adds a scoped service of the type specified in serviceType with an implementation of the type specified in implementationType to the specified IServiceCollection.

AddScoped<TService>(IServiceCollection)

İçinde belirtilen türün kapsamlı bir hizmetini TService belirtilen öğesine ekler IServiceCollection .Adds a scoped service of the type specified in TService to the specified IServiceCollection.

AddScoped<TService>(IServiceCollection, Func<IServiceProvider,TService>)

' De belirtilen bir fabrikada belirtilen türde bir kapsamlı hizmet ekler TService implementationFactory IServiceCollection .Adds a scoped service of the type specified in TService with a factory specified in implementationFactory to the specified IServiceCollection.

AddScoped<TService,TImplementation>(IServiceCollection)

İçinde belirtilen bir tür kapsamlı hizmeti, içinde belirtilen TService bir uygulama türüyle belirtilen şekilde ekler TImplementation IServiceCollection .Adds a scoped service of the type specified in TService with an implementation type specified in TImplementation to the specified IServiceCollection.

AddScoped<TService,TImplementation>(IServiceCollection, Func<IServiceProvider,TImplementation>)

İçinde belirtilen ' de belirtilen fabrika kullanımı ' nda belirtilen bir uygulama türüyle belirtilen türde bir kapsamlı hizmet ekler TService TImplementation implementationFactory IServiceCollection .Adds a scoped service of the type specified in TService with an implementation type specified in TImplementation using the factory specified in implementationFactory to the specified IServiceCollection.

AddSingleton(IServiceCollection, Type)

İçinde belirtilen türün bir singleton hizmetini serviceType belirtilen öğesine ekler IServiceCollection .Adds a singleton service of the type specified in serviceType to the specified IServiceCollection.

AddSingleton(IServiceCollection, Type, Func<IServiceProvider,Object>)

İçinde belirtilen bir fabrika türüyle belirtilen türde bir singleton hizmeti ekler serviceType implementationFactory IServiceCollection .Adds a singleton service of the type specified in serviceType with a factory specified in implementationFactory to the specified IServiceCollection.

AddSingleton(IServiceCollection, Type, Object)

İçinde belirtilen türün ' de belirtilen bir singleton hizmetini serviceType belirtilen bir örneği ile ekler implementationInstance IServiceCollection .Adds a singleton service of the type specified in serviceType with an instance specified in implementationInstance to the specified IServiceCollection.

AddSingleton(IServiceCollection, Type, Type)

İçinde belirtilen türün bir ' de belirtilen türünde bir singleton hizmeti ekler serviceType implementationType IServiceCollection .Adds a singleton service of the type specified in serviceType with an implementation of the type specified in implementationType to the specified IServiceCollection.

AddSingleton<TService>(IServiceCollection)

İçinde belirtilen türün bir singleton hizmetini TService belirtilen öğesine ekler IServiceCollection .Adds a singleton service of the type specified in TService to the specified IServiceCollection.

AddSingleton<TService>(IServiceCollection, TService)

İçinde belirtilen türün ' de belirtilen bir singleton hizmetini TService belirtilen bir örneği ile ekler implementationInstance IServiceCollection .Adds a singleton service of the type specified in TService with an instance specified in implementationInstance to the specified IServiceCollection.

AddSingleton<TService>(IServiceCollection, Func<IServiceProvider,TService>)

İçinde belirtilen bir fabrika türüyle belirtilen türde bir singleton hizmeti ekler TService implementationFactory IServiceCollection .Adds a singleton service of the type specified in TService with a factory specified in implementationFactory to the specified IServiceCollection.

AddSingleton<TService,TImplementation>(IServiceCollection)

' De belirtilen bir uygulama türüyle belirtilen türde bir singleton hizmeti ekler TService TImplementation IServiceCollection .Adds a singleton service of the type specified in TService with an implementation type specified in TImplementation to the specified IServiceCollection.

AddSingleton<TService,TImplementation>(IServiceCollection, Func<IServiceProvider,TImplementation>)

Belirtilen ' de belirtilen fabrika kullanımı ' nda belirtilen TService bir uygulama türüyle belirtilen türde bir singleton hizmeti ekler TImplementation implementationFactory IServiceCollection .Adds a singleton service of the type specified in TService with an implementation type specified in TImplementation using the factory specified in implementationFactory to the specified IServiceCollection.

AddTransient(IServiceCollection, Type)

İçinde belirtilen türün geçici bir hizmetini serviceType belirtilen öğesine ekler IServiceCollection .Adds a transient service of the type specified in serviceType to the specified IServiceCollection.

AddTransient(IServiceCollection, Type, Func<IServiceProvider,Object>)

' De belirtilen bir fabrikada belirtilen türde geçici bir hizmeti serviceType implementationFactory belirtilen şekilde ekler IServiceCollection .Adds a transient service of the type specified in serviceType with a factory specified in implementationFactory to the specified IServiceCollection.

AddTransient(IServiceCollection, Type, Type)

' De belirtilen türün bir uygulamasıyla belirtilen türde geçici bir hizmet ekler serviceType implementationType IServiceCollection .Adds a transient service of the type specified in serviceType with an implementation of the type specified in implementationType to the specified IServiceCollection.

AddTransient<TService>(IServiceCollection)

İçinde belirtilen türün geçici bir hizmetini TService belirtilen öğesine ekler IServiceCollection .Adds a transient service of the type specified in TService to the specified IServiceCollection.

AddTransient<TService>(IServiceCollection, Func<IServiceProvider,TService>)

' De belirtilen bir fabrikada belirtilen türde geçici bir hizmeti TService implementationFactory belirtilen şekilde ekler IServiceCollection .Adds a transient service of the type specified in TService with a factory specified in implementationFactory to the specified IServiceCollection.

AddTransient<TService,TImplementation>(IServiceCollection)

' De belirtilen bir uygulama türüyle belirtilen türde geçici bir hizmet ekler TService TImplementation IServiceCollection .Adds a transient service of the type specified in TService with an implementation type specified in TImplementation to the specified IServiceCollection.

AddTransient<TService,TImplementation>(IServiceCollection, Func<IServiceProvider,TImplementation>)

İçinde belirtilen ' de belirtilen fabrika kullanımı ' nda belirtilen bir uygulama türüyle belirtilen türde geçici bir hizmet ekler TService TImplementation implementationFactory IServiceCollection .Adds a transient service of the type specified in TService with an implementation type specified in TImplementation using the factory specified in implementationFactory to the specified IServiceCollection.

AddDistributedSqlServerCache(IServiceCollection, Action<SqlServerCacheOptions>)

Belirtilen Microsoft SQL Server dağıtılmış önbelleğe alma hizmetleri ekler IServiceCollection .Adds Microsoft SQL Server distributed caching services to the specified IServiceCollection.

AddStackExchangeRedisCache(IServiceCollection, Action<RedisCacheOptions>)

Belirtilen öğesine Redsıs dağıtılmış önbelleğe alma hizmetleri ekler IServiceCollection .Adds Redis distributed caching services to the specified IServiceCollection.

CopyToDataTable<T>(IEnumerable<T>)

DataTable DataRow Genel parametrenin bulunduğu bir giriş nesnesi verildiğinde, nesnelerin kopyalarını içeren bir döndürür IEnumerable<T> T DataRow .Returns a DataTable that contains copies of the DataRow objects, given an input IEnumerable<T> object where the generic parameter T is DataRow.

CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption)

DataRowNesneleri DataTable , IEnumerable<T> genel parametresinin bulunduğu bir giriş nesnesi verildiğinde, belirtilen öğesine kopyalar T DataRow .Copies DataRow objects to the specified DataTable, given an input IEnumerable<T> object where the generic parameter T is DataRow.

CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption, FillErrorEventHandler)

DataRowNesneleri DataTable , IEnumerable<T> genel parametresinin bulunduğu bir giriş nesnesi verildiğinde, belirtilen öğesine kopyalar T DataRow .Copies DataRow objects to the specified DataTable, given an input IEnumerable<T> object where the generic parameter T is DataRow.

Şunlara uygulanır