public MainForm() { InitializeComponent(); toolStripStatusLabel.Text = string.Empty; var actionComponentFactory = ServiceProviderContainer.Instance.Value.Services.GetRequiredService <ActionComponentFactory>(); actionComponent = actionComponentFactory.GetActionComponent(toolStripStatusLabel); typesStaticDataCache = ServiceProviderContainer.Instance.Value.Services.GetRequiredService <ITypesStaticDataCache>(); this.assembly = this.GetType().Assembly; textBoxAssemblyPath.Text = this.assembly.Location; }
protected ProgramArgsParserBase( ITypesStaticDataCache typesStaticDataCache) { this.TypesStaticDataCache = typesStaticDataCache ?? throw new ArgumentNullException(nameof(typesStaticDataCache)); this.ArgsTypeWrapper = typesStaticDataCache.Get(typeof(TProgramArgs)); }
public ProgramArgsParser( ITypesStaticDataCache typesStaticDataCache) : base( typesStaticDataCache) { }