C# 클래스 Microsoft.ApplicationServer.Http.SingletonResourceFactory

A resource factory that always returns the same instance received in the constructor.
상속: IResourceFactory
파일 보기 프로젝트 열기: netfx/extensions

공개 메소드들

메소드 설명
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.

메소드 상세

GetInstance() 공개 메소드

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

ReleaseInstance() 공개 메소드

public ReleaseInstance ( System instanceContext, object service ) : void
instanceContext System
service object
리턴 void

SingletonResourceFactory() 공개 메소드

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