16 lines
426 B
C#
16 lines
426 B
C#
|
namespace RhSolutions.Tools;
|
||
|
|
||
|
internal abstract class ReaderWriterTool: IDisposable
|
||
|
{
|
||
|
protected IReader _reader;
|
||
|
protected IWriter _writer;
|
||
|
|
||
|
protected ReaderFactory _readerFactory = RhSolutionsAddIn.ServiceProvider.GetService<ReaderFactory>();
|
||
|
protected WriterFactory _writerFactory = RhSolutionsAddIn.ServiceProvider.GetService<WriterFactory>();
|
||
|
public void Dispose()
|
||
|
{
|
||
|
_reader?.Dispose();
|
||
|
_writer?.Dispose();
|
||
|
}
|
||
|
}
|