C# Class TersoSolutions.Jetstream.SDK.Device.JetstreamDeviceServiceClient

Jetstream device service client is a proxy to the Jetstream DeviceWebServer Devices send messages into the DeviceWebServer endpoint
Afficher le fichier Open project: tersosolutions/JetstreamSDK-.NET

Méthodes publiques

Méthode Description
BeginSendAggregateEvent ( TersoSolutions.Jetstream.SDK.Device.AggregateEvent request, AsyncCallback callback, Object state ) : IAsyncResult

IAsyncResult pattern to async send the AggregateEvent

BeginSendCommandCompletionEvent ( TersoSolutions.Jetstream.SDK.Device.CommandCompletionEvent request, AsyncCallback callback, Object state ) : IAsyncResult
BeginSendGetCommandsRequest ( GetCommandsRequest request, AsyncCallback callback, Object state ) : IAsyncResult
BeginSendGetDateTimeRequest ( AsyncCallback callback, Object state ) : IAsyncResult
BeginSendHeartbeatEvent ( TersoSolutions.Jetstream.SDK.Device.HeartbeatEvent request, AsyncCallback callback, Object state ) : IAsyncResult
BeginSendLogEntryEvent ( TersoSolutions.Jetstream.SDK.Device.LogEntryEvent request, AsyncCallback callback, Object state ) : IAsyncResult
BeginSendObjectEvent ( TersoSolutions.Jetstream.SDK.Device.ObjectEvent request, AsyncCallback callback, Object state ) : IAsyncResult
BeginSendSensorReadingEvent ( TersoSolutions.Jetstream.SDK.Device.SensorReadingEvent request, AsyncCallback callback, Object state ) : IAsyncResult
EndSendAggregateEvent ( IAsyncResult result ) : void
EndSendCommandCompletionEvent ( IAsyncResult result ) : void
EndSendGetCommandsRequest ( IAsyncResult result ) : Jetstream
EndSendGetDateTimeRequest ( IAsyncResult result ) : DateTime
EndSendHeartbeatEvent ( IAsyncResult result ) : void
EndSendLogEntryEvent ( IAsyncResult result ) : void
EndSendObjectEvent ( IAsyncResult result ) : void
EndSendSensorReadingEvent ( IAsyncResult result ) : void
JetstreamDeviceServiceClient ( string deviceWebServerUrl, string deviceAccessKey ) : System

Constructor for the device service client

SendAggregateEvent ( TersoSolutions.Jetstream.SDK.Device.AggregateEvent request ) : void

Send an aggregate event to the Jetstream Device Webserver

SendCommandCompletionEvent ( TersoSolutions.Jetstream.SDK.Device.CommandCompletionEvent request ) : void

Send a CommandCompletionEvent to the Jetstream Device Webserver

SendGetCommandsRequest ( GetCommandsRequest request ) : Jetstream

Send a GetCommandsRequest to the Jetstream Device Webserver

SendGetDateTimeRequest ( ) : DateTime

Send a SendGetDateTimeRequest to the Jetstream Device Webserver

SendHeartbeatEvent ( TersoSolutions.Jetstream.SDK.Device.HeartbeatEvent request ) : void

Send a HeartbeatEvent to the Jetstream Device Webserver

SendLogEntryEvent ( TersoSolutions.Jetstream.SDK.Device.LogEntryEvent request ) : void

Send a LogEntryEvent to the Jetstream Device Webserver

SendObjectEvent ( TersoSolutions.Jetstream.SDK.Device.ObjectEvent request ) : void

Send an ObjectEvent to the Jestream Device Webserver

SendSensorReadingEvent ( TersoSolutions.Jetstream.SDK.Device.SensorReadingEvent request ) : void

Send a SensorReadingEvent ot the Jetstream Device Webserver

Private Methods

Méthode Description
AddCmdToUrl ( string actualUrl, string commandName ) : string
ChangeDatesToUtc ( string message, string dateTimeAttributes, string nameSpace ) : string
SendMessageToJetStream ( string message ) : string
SendMessageToJetStream ( string commandName, string message ) : string

Method Details

BeginSendAggregateEvent() public méthode

IAsyncResult pattern to async send the AggregateEvent
public BeginSendAggregateEvent ( TersoSolutions.Jetstream.SDK.Device.AggregateEvent request, AsyncCallback callback, Object state ) : IAsyncResult
request TersoSolutions.Jetstream.SDK.Device.AggregateEvent
callback AsyncCallback
state Object
Résultat IAsyncResult

BeginSendCommandCompletionEvent() public méthode

public BeginSendCommandCompletionEvent ( TersoSolutions.Jetstream.SDK.Device.CommandCompletionEvent request, AsyncCallback callback, Object state ) : IAsyncResult
request TersoSolutions.Jetstream.SDK.Device.CommandCompletionEvent
callback AsyncCallback
state Object
Résultat IAsyncResult

BeginSendGetCommandsRequest() public méthode

public BeginSendGetCommandsRequest ( GetCommandsRequest request, AsyncCallback callback, Object state ) : IAsyncResult
request GetCommandsRequest
callback AsyncCallback
state Object
Résultat IAsyncResult

BeginSendGetDateTimeRequest() public méthode

public BeginSendGetDateTimeRequest ( AsyncCallback callback, Object state ) : IAsyncResult
callback AsyncCallback
state Object
Résultat IAsyncResult

BeginSendHeartbeatEvent() public méthode

public BeginSendHeartbeatEvent ( TersoSolutions.Jetstream.SDK.Device.HeartbeatEvent request, AsyncCallback callback, Object state ) : IAsyncResult
request TersoSolutions.Jetstream.SDK.Device.HeartbeatEvent
callback AsyncCallback
state Object
Résultat IAsyncResult

BeginSendLogEntryEvent() public méthode

public BeginSendLogEntryEvent ( TersoSolutions.Jetstream.SDK.Device.LogEntryEvent request, AsyncCallback callback, Object state ) : IAsyncResult
request TersoSolutions.Jetstream.SDK.Device.LogEntryEvent
callback AsyncCallback
state Object
Résultat IAsyncResult

BeginSendObjectEvent() public méthode

public BeginSendObjectEvent ( TersoSolutions.Jetstream.SDK.Device.ObjectEvent request, AsyncCallback callback, Object state ) : IAsyncResult
request TersoSolutions.Jetstream.SDK.Device.ObjectEvent
callback AsyncCallback
state Object
Résultat IAsyncResult

BeginSendSensorReadingEvent() public méthode

public BeginSendSensorReadingEvent ( TersoSolutions.Jetstream.SDK.Device.SensorReadingEvent request, AsyncCallback callback, Object state ) : IAsyncResult
request TersoSolutions.Jetstream.SDK.Device.SensorReadingEvent
callback AsyncCallback
state Object
Résultat IAsyncResult

EndSendAggregateEvent() public méthode

public EndSendAggregateEvent ( IAsyncResult result ) : void
result IAsyncResult
Résultat void

EndSendCommandCompletionEvent() public méthode

public EndSendCommandCompletionEvent ( IAsyncResult result ) : void
result IAsyncResult
Résultat void

EndSendGetCommandsRequest() public méthode

public EndSendGetCommandsRequest ( IAsyncResult result ) : Jetstream
result IAsyncResult
Résultat TersoSolutions.Jetstream.SDK.Device.GetCommandsResponse.Jetstream

EndSendGetDateTimeRequest() public méthode

public EndSendGetDateTimeRequest ( IAsyncResult result ) : DateTime
result IAsyncResult
Résultat DateTime

EndSendHeartbeatEvent() public méthode

public EndSendHeartbeatEvent ( IAsyncResult result ) : void
result IAsyncResult
Résultat void

EndSendLogEntryEvent() public méthode

public EndSendLogEntryEvent ( IAsyncResult result ) : void
result IAsyncResult
Résultat void

EndSendObjectEvent() public méthode

public EndSendObjectEvent ( IAsyncResult result ) : void
result IAsyncResult
Résultat void

EndSendSensorReadingEvent() public méthode

public EndSendSensorReadingEvent ( IAsyncResult result ) : void
result IAsyncResult
Résultat void

JetstreamDeviceServiceClient() public méthode

Constructor for the device service client
public JetstreamDeviceServiceClient ( string deviceWebServerUrl, string deviceAccessKey ) : System
deviceWebServerUrl string
deviceAccessKey string
Résultat System

SendAggregateEvent() public méthode

Send an aggregate event to the Jetstream Device Webserver
public SendAggregateEvent ( TersoSolutions.Jetstream.SDK.Device.AggregateEvent request ) : void
request TersoSolutions.Jetstream.SDK.Device.AggregateEvent The AggregateEvent request
Résultat void

SendCommandCompletionEvent() public méthode

Send a CommandCompletionEvent to the Jetstream Device Webserver
public SendCommandCompletionEvent ( TersoSolutions.Jetstream.SDK.Device.CommandCompletionEvent request ) : void
request TersoSolutions.Jetstream.SDK.Device.CommandCompletionEvent The CommandCompletionEvent
Résultat void

SendGetCommandsRequest() public méthode

Send a GetCommandsRequest to the Jetstream Device Webserver
public SendGetCommandsRequest ( GetCommandsRequest request ) : Jetstream
request GetCommandsRequest The GetCommandsRequest request
Résultat TersoSolutions.Jetstream.SDK.Device.GetCommandsResponse.Jetstream

SendGetDateTimeRequest() public méthode

Send a SendGetDateTimeRequest to the Jetstream Device Webserver
public SendGetDateTimeRequest ( ) : DateTime
Résultat DateTime

SendHeartbeatEvent() public méthode

Send a HeartbeatEvent to the Jetstream Device Webserver
public SendHeartbeatEvent ( TersoSolutions.Jetstream.SDK.Device.HeartbeatEvent request ) : void
request TersoSolutions.Jetstream.SDK.Device.HeartbeatEvent The HeartbeatEvent
Résultat void

SendLogEntryEvent() public méthode

Send a LogEntryEvent to the Jetstream Device Webserver
public SendLogEntryEvent ( TersoSolutions.Jetstream.SDK.Device.LogEntryEvent request ) : void
request TersoSolutions.Jetstream.SDK.Device.LogEntryEvent The LogEntryEvent request
Résultat void

SendObjectEvent() public méthode

Send an ObjectEvent to the Jestream Device Webserver
public SendObjectEvent ( TersoSolutions.Jetstream.SDK.Device.ObjectEvent request ) : void
request TersoSolutions.Jetstream.SDK.Device.ObjectEvent The ObjectEvent
Résultat void

SendSensorReadingEvent() public méthode

Send a SensorReadingEvent ot the Jetstream Device Webserver
public SendSensorReadingEvent ( TersoSolutions.Jetstream.SDK.Device.SensorReadingEvent request ) : void
request TersoSolutions.Jetstream.SDK.Device.SensorReadingEvent The SensorReadingEvent
Résultat void