using Device; namespace EEMSClientCore; public partial class ClientCaller : IClientCaller { Task IClientCaller.RegisterDevice(DeviceInfo deviceInfo) { deviceInfo.IsConnected = true; this.Invoke("RegisterDevice", deviceInfo, out Guid guid); return Task.FromResult(guid); } Task IClientCaller.FilePack(Guid guid, byte[] buffer, int current, int total) { return this.Send("FilePack", guid, buffer, current, total); } Task IClientCaller.UpdateRealTimeData(Dictionary realtimeData) { return this.Send("UpdateRealTimeData", realtimeData); } Task IClientCaller.UpdateAlarm(IEnumerable alarms) { return this.Send("UpdateAlarm", alarms); } Task IClientCaller.UpdateRecipeInfo(Recipe recipeInfo) { return this.Send("UpdateRecipeInfo", recipeInfo); } void IDisposable.Dispose() { _HubConnection?.DisposeAsync().AsTask().Wait(); } }