ClientCaller.cs 448 B

1234567891011121314151617
  1. using Universal;
  2. namespace EEMSClientCore;
  3. public partial class HubBase : IClientCaller
  4. {
  5. Task<Guid> IClientCaller.RegisterDevice(DeviceInfo deviceInfo)
  6. {
  7. this.Invoke("RegisterDevice", deviceInfo, out Guid guid);
  8. return Task.FromResult(guid);
  9. }
  10. Task<bool> IClientCaller.FilePack(Guid guid, byte[] buffer, int current, int total)
  11. {
  12. return this.Send("FilePack", guid, buffer, current, total);
  13. }
  14. }