using Moli.Desktop.Diagnostics; using Moli.Desktop.Plugins; using Moli.Desktop.Runtime; namespace Moli.Desktop.WebView; public sealed class WebViewHostFactory : IWebViewHostFactory { private readonly IDiagnosticsService _diagnostics; private readonly IRuntimeEventBus _events; private readonly PluginBridgeDispatcher _bridgeDispatcher; public WebViewHostFactory( IDiagnosticsService diagnostics, IRuntimeEventBus events, PluginBridgeDispatcher bridgeDispatcher) { _diagnostics = diagnostics; _events = events; _bridgeDispatcher = bridgeDispatcher; } public IWebViewHost Create(PluginDescriptor plugin) { return new WebViewHost(plugin, _diagnostics, _events, _bridgeDispatcher); } }