aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/HttpServer/FileWriter.cs
diff options
context:
space:
mode:
authorClaus Vium <clausvium@gmail.com>2019-03-06 19:29:25 +0100
committerClaus Vium <clausvium@gmail.com>2019-03-06 19:29:25 +0100
commitbba049c987a632375da5e847512efe7ec4a85a31 (patch)
treedb968c71aaa430aa5bdd775a79940d89765afab5 /Emby.Server.Implementations/HttpServer/FileWriter.cs
parent21c2acc520bcebe74dacc4caf1c244e258a12aec (diff)
Make FileSystem readonly
Diffstat (limited to 'Emby.Server.Implementations/HttpServer/FileWriter.cs')
-rw-r--r--Emby.Server.Implementations/HttpServer/FileWriter.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/Emby.Server.Implementations/HttpServer/FileWriter.cs b/Emby.Server.Implementations/HttpServer/FileWriter.cs
index 78e2015b1..0e989994b 100644
--- a/Emby.Server.Implementations/HttpServer/FileWriter.cs
+++ b/Emby.Server.Implementations/HttpServer/FileWriter.cs
@@ -17,7 +17,7 @@ namespace Emby.Server.Implementations.HttpServer
{
private readonly IStreamHelper _streamHelper;
private ILogger Logger { get; set; }
- public IFileSystem FileSystem { get; }
+ private readonly IFileSystem _fileSystem;
private string RangeHeader { get; set; }
private bool IsHeadRequest { get; set; }
@@ -54,10 +54,10 @@ namespace Emby.Server.Implementations.HttpServer
}
_streamHelper = streamHelper;
+ _fileSystem = fileSystem;
Path = path;
Logger = logger;
- FileSystem = fileSystem;
RangeHeader = rangeHeader;
Headers[HeaderNames.ContentType] = contentType;
@@ -181,7 +181,7 @@ namespace Emby.Server.Implementations.HttpServer
count = 0;
}
- await response.TransmitFile(path, offset, count, FileShare, FileSystem, _streamHelper, cancellationToken).ConfigureAwait(false);
+ await response.TransmitFile(path, offset, count, FileShare, _fileSystem, _streamHelper, cancellationToken).ConfigureAwait(false);
}
finally
{