public CommandLineApp(Func <ObsWebSocketClientSettings, ConfigurationForm> formFactory, JsonSettingsRepository settingsRepository, ObsWebSocketClient client, IPresentationSubscriber subscriber, ILogger <CommandLineApp> logger) { this.formFactory = formFactory; this.settingsRepository = settingsRepository; this.client = client; this.subscriber = subscriber; this.logger = logger; }
// TODO: Refactor this Injection public ConfigurationForm(ObsWebSocketClientSettings settings, ObsWebSocketClient client) { InitializeComponent(); this.settings = settings ?? new ObsWebSocketClientSettings(); this.client = client; }