2
0

IClientEventLogger.cs 909 B

123456789101112131415161718192021222324252627
  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="authorizationInfo">The current authorization info.</param>
  21. /// <param name="fileContents">The file contents to write.</param>
  22. /// <returns>The created file name.</returns>
  23. Task<string> WriteDocumentAsync(AuthorizationInfo authorizationInfo, Stream fileContents);
  24. }
  25. }