TelemetryPublisherDisk: Allow reading of telemetry file by other processes

This commit is contained in:
Denis-Cosmin Nutiu 2020-01-24 14:27:36 +02:00
parent 2166695fa0
commit 0932c1707f

View file

@ -32,7 +32,7 @@ namespace NucuCar.Domain.Telemetry
var bufferSize = connectionStringParams.GetValueOrDefault("BufferSize", "4096");
_fileStream = new FileStream(fileName, FileMode.Append, FileAccess.Write,
FileShare.None, int.Parse(bufferSize), true);
FileShare.Read, int.Parse(bufferSize), true);
Logger?.LogDebug("Initialized the TelemetryPublisherDisk!");
}