ClientCaller.cs 601 B

12345678910111213141516171819202122
  1. namespace EEMSClientCore;
  2. public partial class ClientCaller : IClientCaller
  3. {
  4. Task<Guid> IClientCaller.RegisterDevice(DeviceInfo deviceInfo)
  5. {
  6. this.Invoke("RegisterDevice", deviceInfo, out Guid guid);
  7. return Task.FromResult(guid);
  8. }
  9. Task<bool> IClientCaller.FilePack(Guid guid, byte[] buffer, int current, int total)
  10. {
  11. return this.Send("FilePack", guid, buffer, current, total);
  12. }
  13. Task<bool> IClientCaller.UpdateRealTimeData(Dictionary<string, object> realtimeData)
  14. {
  15. return this.Send("UpdateRealTimeData", realtimeData);
  16. }
  17. }