C# Class HA4IoT.Api.ApiService

Inheritance: HA4IoT.Contracts.Services.ServiceBase, IApiService
Exibir arquivo Open project: chkr1011/CK.HomeAutomation Class Usage Examples

Public Methods

Method Description
ApiService ( ) : System
Expose ( object controller ) : void
Expose ( string baseUri, object controller ) : void
NotifyStateChanged ( IComponent component ) : void
RegisterEndpoint ( IApiDispatcherEndpoint endpoint ) : void
Route ( string uri, Action handler ) : void

Private Methods

Method Description
GenerateUri ( string relativePath ) : string
HandleConfigurationRequest ( IApiContext apiContext ) : void
HandleRequest ( IApiContext apiContext, Action handler ) : void
HandleStatusRequest ( IApiContext apiContext ) : void
RouteRequest ( object sender, ApiRequestReceivedEventArgs e ) : void

Method Details

ApiService() public method

public ApiService ( ) : System
return System

Expose() public method

public Expose ( object controller ) : void
controller object
return void

Expose() public method

public Expose ( string baseUri, object controller ) : void
baseUri string
controller object
return void

NotifyStateChanged() public method

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

RegisterEndpoint() public method

public RegisterEndpoint ( IApiDispatcherEndpoint endpoint ) : void
endpoint IApiDispatcherEndpoint
return void

Route() public method

public Route ( string uri, Action handler ) : void
uri string
handler Action
return void