ILog.cs 979 B

1234567891011121314151617181920212223242526272829
  1. using System;
  2. using System.Collections.Generic;
  3. using Vinno.vCloud.Protocol.Infrastructures;
  4. using Vinno.vCloud.Protocol.Messages.Terminal.Remedical.TerminialLog;
  5. namespace Vinno.vCloud.Common.FIS.Log
  6. {
  7. public interface ILog : IFeature, IDisposable
  8. {
  9. /// <summary>
  10. /// Raised when the Upload Log Rule Changed;
  11. /// </summary>
  12. event EventHandler<UploadLogRule> UploadLogRuleChanged;
  13. /// <summary>
  14. /// Get Upload Log Rule
  15. /// </summary>
  16. /// <returns>Upload Log Rule</returns>
  17. UploadLogRule GetUploadLogRule();
  18. /// <summary>
  19. /// Upload Device Logs To Server
  20. /// </summary>
  21. /// <param name="deviceLogPlatform"></param>
  22. /// <param name="deviceLogs">Device logs</param>
  23. /// <returns>True:Upload Success/False:Upload Failed</returns>
  24. bool UploadDeviceLogs(LogChannel deviceLogPlatform, IEnumerable<TerminalDeviceLogMessage> deviceLogs);
  25. }
  26. }