diff options
| author | Cody Robibero <cody@robibe.ro> | 2021-10-26 18:42:17 -0600 |
|---|---|---|
| committer | Cody Robibero <cody@robibe.ro> | 2021-10-26 18:42:17 -0600 |
| commit | a6357f89abb40deaa84ed0ea52010c098e769e62 (patch) | |
| tree | e2697de1b14d3901a0e3d6263c2533f244345c09 /MediaBrowser.Controller/ClientEvent/IClientEventLogger.cs | |
| parent | f78f1e834ce1907157d4d43cf8564cf40d05fb9f (diff) | |
Add ability to upload entire file
Diffstat (limited to 'MediaBrowser.Controller/ClientEvent/IClientEventLogger.cs')
| -rw-r--r-- | MediaBrowser.Controller/ClientEvent/IClientEventLogger.cs | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/MediaBrowser.Controller/ClientEvent/IClientEventLogger.cs b/MediaBrowser.Controller/ClientEvent/IClientEventLogger.cs index bf799c7bf..7cd71a60d 100644 --- a/MediaBrowser.Controller/ClientEvent/IClientEventLogger.cs +++ b/MediaBrowser.Controller/ClientEvent/IClientEventLogger.cs @@ -1,4 +1,6 @@ -using MediaBrowser.Model.ClientLog; +using System.IO; +using System.Threading.Tasks; +using MediaBrowser.Model.ClientLog; namespace MediaBrowser.Controller.ClientEvent { @@ -12,5 +14,13 @@ namespace MediaBrowser.Controller.ClientEvent /// </summary> /// <param name="clientLogEvent">The client log event.</param> void Log(ClientLogEvent clientLogEvent); + + /// <summary> + /// Writes a file to the log directory. + /// </summary> + /// <param name="fileName">The file name.</param> + /// <param name="fileContents">The file contents.</param> + /// <returns>A <see cref="Task"/> representing the asynchronous operation.</returns> + Task WriteFileAsync(string fileName, Stream fileContents); } -}
\ No newline at end of file +} |
