public IAsyncResult BeginSendObjectEvent(OE.Jetstream request, AsyncCallback callback, Object state) { this._sendObjectEventAsync = new SendObjectEventAsync(SendObjectEvent); return this._sendObjectEventAsync.BeginInvoke(request, callback, state); }
/// <summary> /// Send an ObjectEvent to the Jestream Device Webserver /// </summary> /// <param name="request">The ObjectEvent</param> public void SendObjectEvent(OE.Jetstream request) { if (request == null) throw new ArgumentNullException("request"); String message = ChangeDatesToUTC(MessageHelper.SerializeObject(typeof(OE.Jetstream), request), new String[] { "EventTime" }, "http://Jetstream.TersoSolutions.com/v1.0/Device/ObjectEvent"); SendMessageToJetStream(message); }
public IAsyncResult BeginSendObjectEvent(OE.Jetstream request, AsyncCallback callback, Object state) { _sendObjectEventAsync = SendObjectEvent; return _sendObjectEventAsync.BeginInvoke(request, callback, state); }