ClientCaller.cs 434 B

12345678910111213141516
  1. namespace EEMSClientCore;
  2. public class ClientCaller : IClientCaller
  3. {
  4. Task<Guid> IClientCaller.RegisterDevice(DeviceInfo deviceInfo)
  5. {
  6. HubBase.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 HubBase.Send("FilePack", guid, buffer, current, total);
  12. }
  13. }