C# Class Microsoft.ApplicationServer.Http.SingletonResourceFactory

A resource factory that always returns the same instance received in the constructor.
Inheritance: IResourceFactory
Exibir arquivo Open project: netfx/extensions

Public Methods

Method 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 method

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

ReleaseInstance() public method

public ReleaseInstance ( System instanceContext, object service ) : void
instanceContext System
service object
return void

SingletonResourceFactory() public method

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