private void Heartbeat_CouchDBHeartbeatUpdate(object sender, CouchDBHeartbeatEventArgs e) { Debug.WriteLine(e.Document.ToString()); // In silverlight if you would like to get this data back to the UI thread in Silverlight: /* System.Windows.Deployment.Current.Dispatcher.BeginInvoke(delegate { // Talk to the UI thread here }); */ }
protected virtual void OnCouchDBHeartbeatUpdate(CouchDBHeartbeatEventArgs e) { Debug.WriteLine(e.Document.ToString()); if (CouchDBHeartbeatUpdate != null) { CouchDBHeartbeatUpdate(this, e); } }