C# Class DotNetify.VMControllerFactory

Provides view model controllers.
Inheritance: IVMControllerFactory
Exibir arquivo Open project: dsuryd/dotNetify

Public Methods

Method Description
GetInstance ( string key ) : VMController

Creates a view model controller and assigns it a key. On subsequent calls, use the same key to return the same object.

Remove ( string key ) : bool

Removes an existing view model controller.

Private Methods

Method Description
GetCacheItemPolicy ( ) : System.Runtime.Caching.CacheItemPolicy

Returns cached item policy for view model controllers.

TimeSpan ( ) : System

Method Details

GetInstance() public method

Creates a view model controller and assigns it a key. On subsequent calls, use the same key to return the same object.
public GetInstance ( string key ) : VMController
key string Identifies the object.
return VMController

Remove() public method

Removes an existing view model controller.
public Remove ( string key ) : bool
key string Identifies the object.
return bool