IClientEventLogger.cs 754 B

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