Compartilhar via


ServicesExtensions Class

Provides type-safe accessors for services obtained from a ServicesContainerobject.

Inheritance Hierarchy

System.Object
  System.Web.Http.ServicesExtensions

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

Syntax

'Declaration
<ExtensionAttribute> _
Public NotInheritable Class ServicesExtensions
'Usage
public static class ServicesExtensions
[ExtensionAttribute]
public ref class ServicesExtensions abstract sealed
[<AbstractClassAttribute>]
[<SealedAttribute>]
type ServicesExtensions =  class end
public final class ServicesExtensions

The ServicesExtensions type exposes the following members.

Methods

  Name Description
Public methodStatic member GetActionInvoker Gets the IHttpActionInvoker service.
Public methodStatic member GetActionSelector Gets the IHttpActionSelector service.
Public methodStatic member GetActionValueBinder Gets the IActionValueBinder service.
Public methodStatic member GetApiExplorer Gets the IApiExplorer service.
Public methodStatic member GetAssembliesResolver Gets the IAssembliesResolver service.
Public methodStatic member GetBodyModelValidator Gets the IBodyModelValidator service.
Public methodStatic member GetContentNegotiator Gets the IContentNegotiator service.
Public methodStatic member GetDocumentationProvider Gets the IDocumentationProvider service.
Public methodStatic member GetFilterProviders Gets the IFilterProvider collection.
Public methodStatic member GetHostBufferPolicySelector Gets the IHostBufferPolicySelector service.
Public methodStatic member GetHttpControllerActivator Gets the IHttpControllerActivator service.
Public methodStatic member GetHttpControllerSelector Gets the IHttpControllerSelector service.
Public methodStatic member GetHttpControllerTypeResolver Gets the IHttpControllerTypeResolver service.
Public methodStatic member GetModelBinderProviders Gets the ModelBinderProvider collection.
Public methodStatic member GetModelMetadataProvider Gets the ModelMetadataProvider service.
Public methodStatic member GetModelValidatorProviders Gets the ModelValidatorProvider collection.
Public methodStatic member GetTraceManager Gets the ITraceManager service.
Public methodStatic member GetTraceWriter Gets the ITraceWriterservice.
Public methodStatic member GetValueProviderFactories Gets the ValueProviderFactory collection.

Top

Remarks

For methods that return an IEnumerable<T> type, you can assume the return value is non-null, although the returned collection might be empty.

Thread Safety

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

See Also

Reference

System.Web.Http Namespace