C# Class Microsoft.ApplicationServer.Http.ActivatorResourceFactory

Uses Activator.CreateInstance to create service instances of the requested types, and disposes the instance when the ReleaseInstance method is invoked.
Inheritance: IResourceFactory
Afficher le fichier Open project: netfx/extensions

Méthodes publiques

Méthode Description
GetInstance ( Type serviceType, System instanceContext, HttpRequestMessage request ) : object
ReleaseInstance ( System instanceContext, object service ) : void

Method Details

GetInstance() public méthode

public GetInstance ( Type serviceType, System instanceContext, HttpRequestMessage request ) : object
serviceType System.Type
instanceContext System
request System.Net.Http.HttpRequestMessage
Résultat object

ReleaseInstance() public méthode

public ReleaseInstance ( System instanceContext, object service ) : void
instanceContext System
service object
Résultat void