C# Class openHistorian.ServiceHub

Represents a SignalR hub for interaction with the service.
Inheritance: Microsoft.AspNet.SignalR.Hub, IServiceConnectionOperations
ファイルを表示 Open project: GridProtectionAlliance/openHistorian

Public Methods

Method Description
GetPerformanceStatistics ( ) : string

Gets current performance statistics for service.

GetServerTime ( ) : System.DateTime

Gets the current server time.

OnConnected ( ) : System.Threading.Tasks.Task
OnDisconnected ( bool stopCalled ) : System.Threading.Tasks.Task
SendCommand ( string command ) : void

Sends a service command.

ServiceHub ( ) : System

Creates a new ServiceHub instance.

Method Details

GetPerformanceStatistics() public method

Gets current performance statistics for service.
public GetPerformanceStatistics ( ) : string
return string

GetServerTime() public method

Gets the current server time.
public GetServerTime ( ) : System.DateTime
return System.DateTime

OnConnected() public method

public OnConnected ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

OnDisconnected() public method

public OnDisconnected ( bool stopCalled ) : System.Threading.Tasks.Task
stopCalled bool
return System.Threading.Tasks.Task

SendCommand() public method

Sends a service command.
public SendCommand ( string command ) : void
command string Command string.
return void

ServiceHub() public method

Creates a new ServiceHub instance.
public ServiceHub ( ) : System
return System