프로퍼티 | 타입 | 설명 |
---|
메소드 | 설명 | |
---|---|---|
Dispose_VM ( string vmId ) : void |
This method is called by browser clients to remove its view model as it's no longer used.
|
|
DotNetifyHub ( ) : System |
Default constructor.
|
|
DotNetifyHub ( IVMControllerFactory vmControllerFactory ) : System |
Constructor for dependency injection.
|
|
OnDisconnected ( bool stopCalled ) : System.Threading.Tasks.Task |
Handles when a client gets disconnected.
|
|
Request_VM ( string vmId, object vmArg ) : void |
This method is called by browser clients to request view model data.
|
|
Response_VM ( string connectionId, string vmId, string vmData ) : void |
This method is called by the VMManager to send response back to browser clients.
|
|
Update_VM ( string vmId, object>.Dictionary |
This method is called by browser clients to update a view model's value.
|
public Dispose_VM ( string vmId ) : void | ||
vmId | string | Identifies the view model. By convention, this should match a view model class name. |
리턴 | void |
public DotNetifyHub ( IVMControllerFactory vmControllerFactory ) : System | ||
vmControllerFactory | IVMControllerFactory | Factory of view model controllers. |
리턴 | System |
public OnDisconnected ( bool stopCalled ) : System.Threading.Tasks.Task | ||
stopCalled | bool | True, if stop was called on the client closing the connection gracefully; /// false, if the connection has been lost for longer than the timeout. |
리턴 | System.Threading.Tasks.Task |
public Request_VM ( string vmId, object vmArg ) : void | ||
vmId | string | Identifies the view model. |
vmArg | object | Optional view model's initialization argument. |
리턴 | void |
public static Response_VM ( string connectionId, string vmId, string vmData ) : void | ||
connectionId | string | Identifies the browser client making prior request. |
vmId | string | Identifies the view model. |
vmData | string | View model data in serialized JSON. |
리턴 | void |
public Update_VM ( string vmId, object>.Dictionary |
||
vmId | string | Identifies the view model. |
vmData | object>.Dictionary | View model update data, where key is the property path and value is the property's new value. |
리턴 | void |