C# 클래스 ExoModel.ModelContextProvider

Implementation of IModelContextProvider that initializes a thread or web-request scoped ModelContext subclass, and allows subclasses to perform additional initialization work when new contexts are created.
상속: IModelContextProvider
파일 보기 프로젝트 열기: vc3/ExoModel 1 사용 예제들

공개 메소드들

메소드 설명
AddToPool ( ModelContext context ) : void

Adds the specified ModelContext to the context pool.

EnsureContexts ( int minimumNumber ) : void

Specifies the minimum number of contexts that should be available in the pool or in use.

FlushPool ( ) : void

Removes all ModelContext instances from the pool.

ModelContextProvider ( ) : System

Creates a new ModelContextProvider and automatically assigns the instance as the current ModelContext.Provider implementation.

보호된 메소드들

메소드 설명
OnCreateContext ( ) : void

Base implementation that creates a new ModelContext instance.

Subclasses may override CreateContext to perform additional context initialization or even implement a context pool to select existing contexts that are not currently in use.

비공개 메소드들

메소드 설명
GetStorage ( ) : Storage

Gets thread static or HttpContext storage for the ModelContext.

메소드 상세

AddToPool() 공개 정적인 메소드

Adds the specified ModelContext to the context pool.
public static AddToPool ( ModelContext context ) : void
context ModelContext The to add.
리턴 void

EnsureContexts() 공개 메소드

Specifies the minimum number of contexts that should be available in the pool or in use.
public EnsureContexts ( int minimumNumber ) : void
minimumNumber int
리턴 void

FlushPool() 공개 정적인 메소드

Removes all ModelContext instances from the pool.
public static FlushPool ( ) : void
리턴 void

ModelContextProvider() 공개 메소드

Creates a new ModelContextProvider and automatically assigns the instance as the current ModelContext.Provider implementation.
public ModelContextProvider ( ) : System
리턴 System

OnCreateContext() 보호된 메소드

Base implementation that creates a new ModelContext instance.
Subclasses may override CreateContext to perform additional context initialization or even implement a context pool to select existing contexts that are not currently in use.
protected OnCreateContext ( ) : void
리턴 void