Наследование: FileConfigurationBase
Пример #1
0
 /// <summary>
 /// Initializes a new <see cref="BinaryFile"/> bound to its <see cref="BinaryFileConfiguration"/>.
 /// </summary>
 /// <param name="config">The configuration.</param>
 public BinaryFile( BinaryFileConfiguration config )
     : base( config )
 {
     if( config == null ) throw new ArgumentNullException( "config" );
     _file = new MonitorBinaryFileOutput( config.Path, config.MaxCountPerFile, config.UseGzipCompression );
     _file.FileWriteThrough = config.FileWriteThrough;
     _file.FileBufferSize = config.FileBufferSize;
 }
Пример #2
0
 /// <summary>
 /// Initializes a new <see cref="BinaryFile"/> bound to its <see cref="BinaryFileConfiguration"/>.
 /// </summary>
 /// <param name="config">The configuration.</param>
 public BinaryFile(BinaryFileConfiguration config)
     : base(config)
 {
     if (config == null)
     {
         throw new ArgumentNullException("config");
     }
     _file = new MonitorBinaryFileOutput(config.Path, config.MaxCountPerFile, config.UseGzipCompression);
     _file.FileWriteThrough = config.FileWriteThrough;
     _file.FileBufferSize   = config.FileBufferSize;
 }