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
显示文件 Open project: tersosolutions/JetstreamSDK-.NET

Public Methods

Method 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

Method 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 method

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
return IAsyncResult

BeginSendCommandCompletionEvent() public method

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

BeginSendGetCommandsRequest() public method

public BeginSendGetCommandsRequest ( GetCommandsRequest request, AsyncCallback callback, Object state ) : IAsyncResult
request GetCommandsRequest
callback AsyncCallback
state Object
return IAsyncResult

BeginSendGetDateTimeRequest() public method

public BeginSendGetDateTimeRequest ( AsyncCallback callback, Object state ) : IAsyncResult
callback AsyncCallback
state Object
return IAsyncResult

BeginSendHeartbeatEvent() public method

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

BeginSendLogEntryEvent() public method

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

BeginSendObjectEvent() public method

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

BeginSendSensorReadingEvent() public method

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

EndSendAggregateEvent() public method

public EndSendAggregateEvent ( IAsyncResult result ) : void
result IAsyncResult
return void

EndSendCommandCompletionEvent() public method

public EndSendCommandCompletionEvent ( IAsyncResult result ) : void
result IAsyncResult
return void

EndSendGetCommandsRequest() public method

public EndSendGetCommandsRequest ( IAsyncResult result ) : Jetstream
result IAsyncResult
return TersoSolutions.Jetstream.SDK.Device.GetCommandsResponse.Jetstream

EndSendGetDateTimeRequest() public method

public EndSendGetDateTimeRequest ( IAsyncResult result ) : DateTime
result IAsyncResult
return DateTime

EndSendHeartbeatEvent() public method

public EndSendHeartbeatEvent ( IAsyncResult result ) : void
result IAsyncResult
return void

EndSendLogEntryEvent() public method

public EndSendLogEntryEvent ( IAsyncResult result ) : void
result IAsyncResult
return void

EndSendObjectEvent() public method

public EndSendObjectEvent ( IAsyncResult result ) : void
result IAsyncResult
return void

EndSendSensorReadingEvent() public method

public EndSendSensorReadingEvent ( IAsyncResult result ) : void
result IAsyncResult
return void

JetstreamDeviceServiceClient() public method

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

SendAggregateEvent() public method

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
return void

SendCommandCompletionEvent() public method

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
return void

SendGetCommandsRequest() public method

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

SendGetDateTimeRequest() public method

Send a SendGetDateTimeRequest to the Jetstream Device Webserver
public SendGetDateTimeRequest ( ) : DateTime
return DateTime

SendHeartbeatEvent() public method

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
return void

SendLogEntryEvent() public method

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
return void

SendObjectEvent() public method

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
return void

SendSensorReadingEvent() public method

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
return void