ServicesContainer Class

 

An abstract class that provides a container for services used by ASP.NET Web API.

Namespace:   System.Web.Http.Controllers
Assembly:  System.Web.Http (in System.Web.Http.dll)


public abstract class ServicesContainer : IDisposable

NameDescription
System_CAPS_protmethodServicesContainer()

Initializes a new instance of the ServicesContainer class.

NameDescription
System_CAPS_pubmethodAdd(Type, Object)

Adds a service to the end of services list for the given service type.

System_CAPS_pubmethodAddRange(Type, IEnumerable<Object>)

Adds the services of the specified collection to the end of the services list for the given service type.

System_CAPS_pubmethodClear(Type)

Removes all the service instances of the given service type.

System_CAPS_protmethodClearMultiple(Type)

Removes all instances of a multi-instance service type.

System_CAPS_protmethodClearSingle(Type)

Removes a single-instance service type.

System_CAPS_pubmethodDispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodFindIndex(Type, Predicate<Object>)

Searches for a service that matches the conditions defined by the specified predicate, and returns the zero-based index of the first occurrence.

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetService(Type)

Gets a service instance of a specified type.

System_CAPS_protmethodGetServiceInstances(Type)

Gets a mutable list of service instances of a specified type.

System_CAPS_pubmethodGetServices(Type)

Gets a collection of service instanes of a specified type.

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodInsert(Type, Int32, Object)

Inserts a service into the collection at the specified index.

System_CAPS_pubmethodInsertRange(Type, Int32, IEnumerable<Object>)

Inserts the elements of the collection into the service list at the specified index.

System_CAPS_pubmethodIsSingleService(Type)

Determine whether the service type should be fetched with GetService or GetServices.

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodRemove(Type, Object)

Removes the first occurrence of the given service from the service list for the given service type.

System_CAPS_pubmethodRemoveAll(Type, Predicate<Object>)

Removes all the elements that match the conditions defined by the specified predicate.

System_CAPS_pubmethodRemoveAt(Type, Int32)

Removes the service at the specified index.

System_CAPS_pubmethodReplace(Type, Object)

Replaces all existing services for the given service type with the given service instance. This works for both singular and plural services.

System_CAPS_protmethodReplaceMultiple(Type, Object)

Replaces all instances of a multi-instance service with a new instance.

System_CAPS_pubmethodReplaceRange(Type, IEnumerable<Object>)

Replaces all existing services for the given service type with the given service instances.

System_CAPS_protmethodReplaceSingle(Type, Object)

Replaces a single-instance service of a specified type.

System_CAPS_protmethodResetCache(Type)

Removes the cached values for a single service type.

System_CAPS_pubmethodToString()

(Inherited from Object.)

NameDescription
System_CAPS_pubmethodGetActionInvoker()

Gets the IHttpActionInvoker service.(Defined by ServicesExtensions.)

System_CAPS_pubmethodGetActionSelector()

Gets the IHttpActionSelector service.(Defined by ServicesExtensions.)

System_CAPS_pubmethodGetActionValueBinder()

Gets the IActionValueBinder service.(Defined by ServicesExtensions.)

System_CAPS_pubmethodGetApiExplorer()

Gets the IApiExplorer service.(Defined by ServicesExtensions.)

System_CAPS_pubmethodGetAssembliesResolver()

Gets the IAssembliesResolver service.(Defined by ServicesExtensions.)

System_CAPS_pubmethodGetBodyModelValidator()

Gets the IBodyModelValidator service.(Defined by ServicesExtensions.)

System_CAPS_pubmethodGetContentNegotiator()

Gets the IContentNegotiator service.(Defined by ServicesExtensions.)

System_CAPS_pubmethodGetDocumentationProvider()

Gets the IDocumentationProvider service.(Defined by ServicesExtensions.)

System_CAPS_pubmethodGetExceptionHandler()

Returns the registered unhandled exception handler, if any.(Defined by ServicesExtensions.)

System_CAPS_pubmethodGetExceptionLoggers()

Returns the collection of registered unhandled exception loggers.(Defined by ServicesExtensions.)

System_CAPS_pubmethodGetFilterProviders()

Gets the IFilterProvider collection.(Defined by ServicesExtensions.)

System_CAPS_pubmethodGetHostBufferPolicySelector()

Gets the IHostBufferPolicySelector service.(Defined by ServicesExtensions.)

System_CAPS_pubmethodGetHttpControllerActivator()

Gets the IHttpControllerActivator service.(Defined by ServicesExtensions.)

System_CAPS_pubmethodGetHttpControllerSelector()

Gets the IHttpControllerSelector service.(Defined by ServicesExtensions.)

System_CAPS_pubmethodGetHttpControllerTypeResolver()

Gets the IHttpControllerTypeResolver service.(Defined by ServicesExtensions.)

System_CAPS_pubmethodGetModelBinderProviders()

Gets the ModelBinderProvider collection.(Defined by ServicesExtensions.)

System_CAPS_pubmethodGetModelMetadataProvider()

Gets the ModelMetadataProvider service.(Defined by ServicesExtensions.)

System_CAPS_pubmethodGetModelValidatorProviders()

Gets the ModelValidatorProvider collection.(Defined by ServicesExtensions.)

System_CAPS_pubmethodGetTraceManager()

Gets the ITraceManager service.(Defined by ServicesExtensions.)

System_CAPS_pubmethodGetTraceWriter()

Gets the ITraceWriterservice.(Defined by ServicesExtensions.)

System_CAPS_pubmethodGetValueProviderFactories()

Gets the ValueProviderFactory collection.(Defined by ServicesExtensions.)

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: