17 private string fileName;
18 private bool deleteWhenDisposed =
true;
43 : base(
FileName, FileMode.OpenOrCreate, FileAccess.ReadWrite, FileShare.Read, BufferSize, FileOptions.RandomAccess)
58 get => this.deleteWhenDisposed;
59 set => this.deleteWhenDisposed = value;
65 protected override void Dispose(
bool disposing)
67 base.Dispose(disposing);
69 if (!(this.fileName is
null))
71 if (this.deleteWhenDisposed)
75 File.Delete(this.fileName);
Static class managing the application event log. Applications and services log events on this static ...
static void Exception(Exception Exception, string Object, string Actor, string EventId, EventLevel Level, string Facility, string Module, params KeyValuePair< string, object >[] Tags)
Logs an exception. Event type will be determined by the severity of the exception.
Class managing the contents of a temporary file. When the class is disposed, the temporary file is de...
override void Dispose(bool disposing)
Disposes of the object, and deletes the temporary file.
bool DeleteWhenDisposed
Delete file when object is disposed.
TemporaryFile(string FileName)
Class managing the contents of a temporary file. When the class is disposed, the temporary file is de...
const int DefaultBufferSize
Default buffer size, in bytes.
TemporaryFile()
Class managing the contents of a temporary file. When the class is disposed, the temporary file is de...
TemporaryFile(string FileName, int BufferSize)
Class managing the contents of a temporary file. When the class is disposed, the temporary file is de...
string FileName
File Name.