C# Class HA4IoT.Api.LocalHttpServerApiDispatcherEndpointService

Inheritance: HA4IoT.Contracts.Services.ServiceBase, IApiDispatcherEndpoint
显示文件 Open project: chkr1011/CK.HomeAutomation

Public Methods

Method Description
LocalHttpServerApiDispatcherEndpointService ( IApiService apiService, HttpServer httpServer ) : System
NotifyStateChanged ( IComponent component ) : void
Startup ( ) : void

Private Methods

Method Description
AttachWebSocket ( IWebSocketClientSession webSocketClientSession ) : void
AttachWebSocket ( object sender, WebSocketConnectedEventArgs eventArgs ) : void
ConvertResultCode ( ApiResultCode resultCode ) : HttpStatusCode
CreateApiContext ( HttpContext httpContext ) : ApiContext
DispatchHttpRequest ( HttpContext httpContext ) : void
DispatchHttpRequest ( object sender, HttpRequestReceivedEventArgs eventArgs ) : void
DispatchWebSocketMessage ( object sender, WebSocketMessageReceivedEventArgs e ) : void
GenerateHash ( string input ) : string

Method Details

LocalHttpServerApiDispatcherEndpointService() public method

public LocalHttpServerApiDispatcherEndpointService ( IApiService apiService, HttpServer httpServer ) : System
apiService IApiService
httpServer HA4IoT.Networking.Http.HttpServer
return System

NotifyStateChanged() public method

public NotifyStateChanged ( IComponent component ) : void
component IComponent
return void

Startup() public method

public Startup ( ) : void
return void