C# Class HA4IoT.Api.ApiService

Inheritance: HA4IoT.Contracts.Services.ServiceBase, IApiService
Afficher le fichier Open project: chkr1011/CK.HomeAutomation Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

public ApiService ( ) : System
Résultat System

Expose() public méthode

public Expose ( object controller ) : void
controller object
Résultat void

Expose() public méthode

public Expose ( string baseUri, object controller ) : void
baseUri string
controller object
Résultat void

NotifyStateChanged() public méthode

public NotifyStateChanged ( IComponent component ) : void
component IComponent
Résultat void

RegisterEndpoint() public méthode

public RegisterEndpoint ( IApiDispatcherEndpoint endpoint ) : void
endpoint IApiDispatcherEndpoint
Résultat void

Route() public méthode

public Route ( string uri, Action handler ) : void
uri string
handler Action
Résultat void