IClientEventLogger.cs 1.0 KB

12345678910111213141516171819202122232425262728293031
  1. using System.IO;
  2. using System.Threading.Tasks;
  3. using MediaBrowser.Controller.Net;
  4. using MediaBrowser.Model.ClientLog;
  5. namespace MediaBrowser.Controller.ClientEvent
  6. {
  7. /// <summary>
  8. /// The client event logger.
  9. /// </summary>
  10. public interface IClientEventLogger
  11. {
  12. /// <summary>
  13. /// Logs the event from the client.
  14. /// </summary>
  15. /// <param name="clientLogEvent">The client log event.</param>
  16. void Log(ClientLogEvent clientLogEvent);
  17. /// <summary>
  18. /// Writes a file to the log directory.
  19. /// </summary>
  20. /// <param name="clientName">The client name writing the document.</param>
  21. /// <param name="clientVersion">The client version writing the document.</param>
  22. /// <param name="fileContents">The file contents to write.</param>
  23. /// <returns>The created file name.</returns>
  24. Task<string> WriteDocumentAsync(
  25. string clientName,
  26. string clientVersion,
  27. Stream fileContents);
  28. }
  29. }