14 references to LogRetentionOption
System.Core (14)
System\Diagnostics\EventSchemaTraceListener.cs (1)
697
stream = new LogStream(_fileName, bufferSize, (
LogRetentionOption
)retention, maxFileSize, maxNumberOfFiles);
System\IO\LogStream.cs (13)
34
internal const
LogRetentionOption
DefaultRetention =
LogRetentionOption
.SingleFileUnboundedSize;
38
private
LogRetentionOption
_retention;
72
internal LogStream(String path, int bufferSize,
LogRetentionOption
retention, long maxFileSize, int maxNumOfFiles)
104
_modeSav = (retention !=
LogRetentionOption
.SingleFileUnboundedSize)? FileMode.Create : FileMode.OpenOrCreate;
106
_seekToEndSav = (retention !=
LogRetentionOption
.SingleFileUnboundedSize)? false : true;
369
case
LogRetentionOption
.LimitedSequentialFiles:
370
case
LogRetentionOption
.UnlimitedSequentialFiles:
371
case
LogRetentionOption
.LimitedCircularFiles:
378
if ((_retention ==
LogRetentionOption
.LimitedCircularFiles) && (_currentFileNum > _maxNumberOfFiles)) {
381
else if ((_retention ==
LogRetentionOption
.LimitedSequentialFiles) && (_currentFileNum > _maxNumberOfFiles)) {
434
case
LogRetentionOption
.SingleFileBoundedSize:
439
case
LogRetentionOption
.SingleFileUnboundedSize: