Метод | Описание | |
---|---|---|
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.
|
public static AddToPool ( ModelContext context ) : void | ||
context | ModelContext | The |
Результат | void |
public EnsureContexts ( int minimumNumber ) : void | ||
minimumNumber | int | |
Результат | void |