protected override void ServiceAction() { if (!_client.Context.Client.Connected) { Stop(false); } var o = SystemInfo.Create(); try { _client.WriteObject(o); } catch (Exception e) { if (WriteFailed != null) { WriteFailed(this, e); } Debug.WriteLine("Write failed: {0}", e); } }
public void Save(TObject obj) { _client.WriteObject(obj); //_repository.Save(obj, _keySelector); }