C# Class Microsoft.ApplicationServer.Http.SingletonResourceFactory

A resource factory that always returns the same instance received in the constructor.
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
SingletonResourceFactory ( object serviceInstance ) : System

Initializes the factory with the instance to return for all requests.

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

SingletonResourceFactory() public méthode

Initializes the factory with the instance to return for all requests.
public SingletonResourceFactory ( object serviceInstance ) : System
serviceInstance object
Résultat System