jellyfin/MediaBrowser.Controller/ClientEvent/IClientEventLogger.cs

24 lines
757 B
C#
Raw Normal View History

2021-10-27 02:42:17 +02:00
using System.IO;
using System.Threading.Tasks;
2021-04-26 15:02:26 +02:00
namespace MediaBrowser.Controller.ClientEvent
{
/// <summary>
/// The client event logger.
/// </summary>
public interface IClientEventLogger
{
2021-10-27 02:42:17 +02:00
/// <summary>
/// Writes a file to the log directory.
/// </summary>
2021-11-05 17:40:45 +01:00
/// <param name="clientName">The client name writing the document.</param>
/// <param name="clientVersion">The client version writing the document.</param>
2021-10-28 03:20:14 +02:00
/// <param name="fileContents">The file contents to write.</param>
/// <returns>The created file name.</returns>
2021-11-05 17:40:45 +01:00
Task<string> WriteDocumentAsync(
string clientName,
string clientVersion,
Stream fileContents);
2021-04-26 15:02:26 +02:00
}
2021-10-27 02:42:17 +02:00
}