biongogo.blogg.se

Icollection
Icollection






icollection

Using the factory specified in implementationFactory TryAddScoped(IServiceCollection, Type, Func) To the collection if the service type hasn't already been registered. ServiceType and an implementation that does not already existĪdds the specified service as a Scoped service TryAddEnumerable(IServiceCollection, IEnumerable)Īdds the specified ServiceDescriptors if an existing descriptor with the same ServiceType and an implementation that does not already exist in services. TryAddEnumerable(IServiceCollection, ServiceDescriptor)Īdds a ServiceDescriptor if an existing descriptor with the same Service type hasn't already been registered.Īdds the specified descriptors to the collection if the TryAdd(IServiceCollection, ServiceDescriptor)Īdds the specified descriptor to the collection if the Removes the first service in IServiceCollection with the same service typeĪs descriptor and adds descriptor to the collection. Replace(IServiceCollection, ServiceDescriptor) Removes all services of type T in IServiceCollection. Removes all services of type serviceType in IServiceCollection. Registers the fake redactor provider that always returns fake redactor instances.ĪddFakeRedaction(IServiceCollection, Action)Īdds HtmlEncoder, JavaScriptEncoder and UrlEncoderĪddWebEncoders(IServiceCollection, Action)Īdd(IServiceCollection, ServiceDescriptor)Īdds the specified descriptor to the collection.Īdds a sequence of ServiceDescriptor to the collection. Registers an implementation of IRedactorProvider in the IServiceCollection and configures available redactors.

icollection

Registers an implementation of IRedactorProvider in the IServiceCollection. Tries to remove the default implementation for IAsyncState, IAsyncContext, and IAsyncLocalContext services. TryRemoveAsyncStateCore(IServiceCollection) Returns an enumerator that iterates through a collection.Įxtension Methods AddApplicationMetadata(IServiceCollection, IConfigurationSection)Īdds an instance of ApplicationMetadata to a dependency injection container.ĪddApplicationMetadata(IServiceCollection, Action)Īdds default implementations for IAsyncState, IAsyncContext, and IAsyncLocalContext services. Returns a string that represents the current object. Removes the IList item at the specified index. Removes the first occurrence of a specific object from the ICollection. Inserts an item to the IList at the specified index.Ĭreates a shallow copy of the current Object. Returns an enumerator that iterates through the collection.ĭetermines the index of a specific item in the IList. Gets or sets the element at the specified index.ĭetermines whether the ICollection contains a specific value.Ĭopies the elements of the ICollection to an Array, starting at a particular Array index.ĭetermines whether the specified object is equal to the current object. Gets a value indicating whether the ICollection is read-only. Gets the number of elements contained in the ICollection. Initializes a new instance of the ServiceCollection class. IServiceCollection ICollection ICollection IEnumerable IEnumerable IList IEnumerable Implements ICollection(Of ServiceDescriptor), IEnumerable(Of ServiceDescriptor), IList(Of ServiceDescriptor), IServiceCollection Inheritance

icollection icollection

Interface IList Public Class ServiceCollection Interface IEnumerable type ServiceCollection = class public ref class ServiceCollection : Microsoft::Extensions::DependencyInjection::IServiceCollection, System::Collections::Generic::ICollection, System::Collections::Generic::IEnumerable, System::Collections::Generic::IList public class ServiceCollection :, ,, type ServiceCollection = class Default implementation of IServiceCollection.








Icollection