프로퍼티 | 타입 | 설명 | |
---|---|---|---|
_activeVMs | VMInfo>.ConcurrentDictionary | ||
_registeredAssemblies | List |
||
_vmResponse | VMResponseDelegate | ||
_vmTypes | List |
메소드 | 설명 | |
---|---|---|
Dispose ( ) : void |
Disposes active view models.
|
|
OnDisposeVM ( string connectionId, string vmId ) : void |
Handles request from a browser client to remove a view model.
|
|
OnRequestVM ( string connectionId, string vmId, object vmArg = null ) : void |
Handles a request for a view model from a browser client.
|
|
OnUpdateVM ( string connectionId, string vmId, object>.Dictionary |
Handles view model update from a browser client.
|
|
RegisterAssembly ( |
Registers all view model types in an assembly.
|
|
VMController ( VMResponseDelegate vmResponse ) : System |
Constructor.
|
메소드 | 설명 | |
---|---|---|
CreateVM ( string vmId, object vmArg = null ) : BaseVM |
Creates a view model.
|
|
IsAuthorized ( BaseVM vmInstance ) : bool |
Returns whether current security context is authorized to access a view model.
|
|
PushUpdates ( ) : void |
Push property changed updates on all view models back to the client.
|
|
Serialize ( object data ) : string |
Serializes an object.
|
|
UpdateVM ( BaseVM vmInstance, string vmPath, string newValue ) : void |
Updates a value of a view model.
|
메소드 | 설명 | |
---|---|---|
VmInstance_RequestPushUpdates ( object sender, |
Handles push updates request from a view model.
|
protected CreateVM ( string vmId, object vmArg = null ) : BaseVM | ||
vmId | string | Identifies the view model. |
vmArg | object | Optional view model's initialization argument. |
리턴 | BaseVM |
protected IsAuthorized ( BaseVM vmInstance ) : bool | ||
vmInstance | BaseVM | View model instance. |
리턴 | bool |
public OnDisposeVM ( string connectionId, string vmId ) : void | ||
connectionId | string | Identifies the client connection. |
vmId | string | Identifies the view model. |
리턴 | void |
public OnRequestVM ( string connectionId, string vmId, object vmArg = null ) : void | ||
connectionId | string | Identifies the client connection. |
vmId | string | Identifies the view model. |
vmArg | object | Optional view model's initialization argument. |
리턴 | void |
public OnUpdateVM ( string connectionId, string vmId, object>.Dictionary |
||
connectionId | string | Identifies the client connection. |
vmId | string | Identifies the view model. |
data | object>.Dictionary | |
리턴 | void |
public static RegisterAssembly ( |
||
vmAssembly | Assembly. | |
리턴 | void |
protected Serialize ( object data ) : string | ||
data | object | Data to serialize. |
리턴 | string |
protected UpdateVM ( BaseVM vmInstance, string vmPath, string newValue ) : void | ||
vmInstance | BaseVM | View model instance. |
vmPath | string | View model property path. |
newValue | string | New value. |
리턴 | void |
public VMController ( VMResponseDelegate vmResponse ) : System | ||
vmResponse | VMResponseDelegate | Function invoked by the view model to provide response back to the client. |
리턴 | System |