C# 클래스 DotNetify.DotNetifyHub

This class is a SignalR hub for communicating with browser clients.
상속: Microsoft.AspNet.SignalR.Hub
파일 보기 프로젝트 열기: dsuryd/dotNetify

Private Properties

프로퍼티 타입 설명

공개 메소드들

메소드 설명
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 vmData ) : void

This method is called by browser clients to update a view model's value.

메소드 상세

Dispose_VM() 공개 메소드

This method is called by browser clients to remove its view model as it's no longer used.
public Dispose_VM ( string vmId ) : void
vmId string Identifies the view model. By convention, this should match a view model class name.
리턴 void

DotNetifyHub() 공개 메소드

Default constructor.
public DotNetifyHub ( ) : System
리턴 System

DotNetifyHub() 공개 메소드

Constructor for dependency injection.
public DotNetifyHub ( IVMControllerFactory vmControllerFactory ) : System
vmControllerFactory IVMControllerFactory Factory of view model controllers.
리턴 System

OnDisconnected() 공개 메소드

Handles when a client gets disconnected.
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

Request_VM() 공개 메소드

This method is called by browser clients to request view model data.
public Request_VM ( string vmId, object vmArg ) : void
vmId string Identifies the view model.
vmArg object Optional view model's initialization argument.
리턴 void

Response_VM() 공개 정적인 메소드

This method is called by the VMManager to send response back to browser clients.
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

Update_VM() 공개 메소드

This method is called by browser clients to update a view model's value.
public Update_VM ( string vmId, object>.Dictionary vmData ) : void
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