ControllerServices Class

 

Represents a container for services that can be specific to a controller. This shadows the services from its parent ServicesContainer. A controller can either set a service here, or fall through to the more global set of services.

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

System::Object
  System.Web.Http.Controllers::ServicesContainer
    System.Web.Http.Controllers::ControllerServices

public ref class ControllerServices : ServicesContainer

NameDescription
System_CAPS_pubmethodControllerServices(ServicesContainer^)

Initializes a new instance of the ControllerServices class.

NameDescription
System_CAPS_pubmethodAdd(Type^, Object^)

Adds a service to the end of services list for the given service type. (Inherited from ServicesContainer.)

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. (Inherited from ServicesContainer.)

System_CAPS_pubmethodClear(Type^)

Removes all the service instances of the given service type. (Inherited from ServicesContainer.)

System_CAPS_protmethodClearMultiple(Type^)

Removes all instances of a multi-instance service type.(Inherited from ServicesContainer.)

System_CAPS_protmethodClearSingle(Type^)

Removes a single-instance service from the default services.(Overrides ServicesContainer::ClearSingle(Type^).)

System_CAPS_pubmethodDispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.(Inherited from ServicesContainer.)

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. (Inherited from ServicesContainer.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetService(Type^)

Gets a service of the specified type.(Overrides ServicesContainer::GetService(Type^).)

System_CAPS_protmethodGetServiceInstances(Type^)

Gets the list of service objects for a given service type, and validates the service type.(Overrides ServicesContainer::GetServiceInstances(Type^).)

System_CAPS_pubmethodGetServices(Type^)

Gets the list of service objects for a given service type.(Overrides ServicesContainer::GetServices(Type^).)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodInsert(Type^, Int32, Object^)

Inserts a service into the collection at the specified index. (Inherited from ServicesContainer.)

System_CAPS_pubmethodInsertRange(Type^, Int32, IEnumerable<Object^>^)

Inserts the elements of the collection into the service list at the specified index. (Inherited from ServicesContainer.)

System_CAPS_pubmethodIsSingleService(Type^)

Queries whether a service type is single-instance.(Overrides ServicesContainer::IsSingleService(Type^).)

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. (Inherited from ServicesContainer.)

System_CAPS_pubmethodRemoveAll(Type^, Predicate<Object^>^)

Removes all the elements that match the conditions defined by the specified predicate. (Inherited from ServicesContainer.)

System_CAPS_pubmethodRemoveAt(Type^, Int32)

Removes the service at the specified index. (Inherited from ServicesContainer.)

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. (Inherited from ServicesContainer.)

System_CAPS_protmethodReplaceMultiple(Type^, Object^)

Replaces all instances of a multi-instance service with a new instance.(Inherited from ServicesContainer.)

System_CAPS_pubmethodReplaceRange(Type^, IEnumerable<Object^>^)

Replaces all existing services for the given service type with the given service instances. (Inherited from ServicesContainer.)

System_CAPS_protmethodReplaceSingle(Type^, Object^)

Replaces a single-instance service object.(Overrides ServicesContainer::ReplaceSingle(Type^, Object^).)

System_CAPS_protmethodResetCache(Type^)

Removes the cached values for a single service type.(Inherited from ServicesContainer.)

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: