| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
-
- using Device;
- namespace EEMSClientCore;
- public partial class ClientCaller : IClientCaller
- {
- Task<Guid> IClientCaller.RegisterDevice(DeviceInfo deviceInfo)
- {
- deviceInfo.IsConnected = true;
- this.Invoke("RegisterDevice", deviceInfo, out Guid guid);
- return Task.FromResult(guid);
- }
- Task<bool> IClientCaller.FilePack(Guid guid, byte[] buffer, int current, int total)
- {
- return this.Send("FilePack", guid, buffer, current, total);
- }
- Task<bool> IClientCaller.UpdateRealTimeData(Dictionary<string, object> realtimeData)
- {
- return this.Send("UpdateRealTimeData", realtimeData);
- }
- Task<bool> IClientCaller.UpdateAlarm(IEnumerable<Alarm> alarms)
- {
- return this.Send("UpdateAlarm", alarms);
- }
- Task<bool> IClientCaller.UpdateRecipeInfo(Recipe recipeInfo)
- {
- return this.Send("UpdateRecipeInfo", recipeInfo);
- }
- void IDisposable.Dispose()
- {
- throw new NotImplementedException();
- }
- }
|