/// <summary> /// /// </summary> public void Dispose() { if (_blockWriter != null) { _blockWriter.Dispose(); _blockWriter = null; } }
/// <summary> /// /// </summary> public void Dispose() { if(_blockWriter != null) { _blockWriter.Dispose(); _blockWriter = null; } }
public BizTalkBlockStream(IBlockWriter blockWriter) { if (blockWriter == null) throw new ArgumentNullException("blockWriter"); this.blockWriter = blockWriter; this.writeBuffer = new MemoryStream(); this.deflateBuffer = new MemoryStream(); }
public void SetUp() { _path = Path.Combine(Environment.CurrentDirectory, "FileBlockWriterTests.dat"); if (File.Exists(_path)) { File.Delete(_path); } _blockWriter = new FileBlockWriter(_path, BlockSize); }
public void SetUp() { _path = Path.Combine(Environment.CurrentDirectory, "FileBlockWriterTests.dat"); if(File.Exists(_path)) { File.Delete(_path); } _blockWriter = new FileBlockWriter(_path, BlockSize); }
/// <summary> /// Create a new instance of <see cref="JournalWriter"/> /// </summary> /// <param name="bufferSize">size of the buffer, IOs will be writen to disk in blocks of this size. Must be a multiple of the disk sector size. /// You can use the following command to determine your disk sector size: "fsutil fsinfo ntfsinfo c:"</param> /// <param name="blockWriter">the <see cref="IBlockWriter"/> used to write to disk.</param> public JournalWriter(int bufferSize, IBlockWriter blockWriter) { _blockWriter = blockWriter; _buffer = new ByteRingBuffer(bufferSize); _buffer.BufferFull += OnBufferFull; }
public ScenarioBuilder(IApplicationHost applicationHost, IBlockWriter blockWriter) { _applicationHost = applicationHost; _blockWriter = blockWriter; }
public ContextBuilder(IApplicationHost applicationHost, IBlockWriter blockWriter) { _applicationHost = applicationHost; _blockWriter = blockWriter; }