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 async Task <SystemInfo> SiteInfo() { return(await SystemInfo.Create(_updateService, _objectRepository)); }