jellyfin-server/MediaBrowser.Controller/ClientEvent/IClientEventLogger.cs

24 lines
757 B
C#
Raw Normal View History

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