RhSolutions-AddIn/RhSolutions.AddIn/Tools/ToolBase.cs

22 lines
510 B
C#
Raw Normal View History

2023-04-06 08:29:39 +03:00
#if !NET472
using System.Runtime.Versioning;
#endif
namespace RhSolutions.Tools;
#if !NET472
[SupportedOSPlatform("windows")]
#endif
internal abstract class ToolBase
{
protected readonly IExcelReader _reader;
protected readonly IExcelWriter _writer;
public ToolBase()
{
_reader = RhSolutionsAddIn.ServiceProvider.GetRequiredService<IExcelReader>();
_writer = RhSolutionsAddIn.ServiceProvider.GetRequiredService<IExcelWriter>();
}
public abstract void Execute();
}