コード例 #1
0
        /// <summary>
        /// Send a HeartbeatEvent to the Jetstream Device Webserver
        /// </summary>
        /// <param name="request">The HeartbeatEvent</param>
        public void SendHeartbeatEvent(HE.Jetstream request)
        {
            if (request == null) throw new ArgumentNullException("request");

            String message = ChangeDatesToUTC(MessageHelper.SerializeObject(typeof(HE.Jetstream), request), new String[] { "EventTime" }, "http://Jetstream.TersoSolutions.com/v1.0/Device/HeartbeatEvent");
            SendMessageToJetStream(message);
        }
コード例 #2
0
 public IAsyncResult BeginSendHeartbeatEvent(HE.Jetstream request, AsyncCallback callback, Object state)
 {
     this._sendHeartbeatEventAsync = new SendHeartbeatEventAsync(SendHeartbeatEvent);
     return this._sendHeartbeatEventAsync.BeginInvoke(request, callback, state);
 }