protected LanguageServerClientBase(
            IServiceProvider serviceProvider,
            ISessionService sessionService,
            IEventAggregator eventAggregator,
            IBrowserServiceFactory browserServiceFactory,
            ISettingsServiceFactory settingsServiceFactory,
            ILogger logger)
        {
            Log = logger;
            try {
                ServiceProvider        = serviceProvider;
                SessionService         = sessionService;
                EventAggregator        = eventAggregator;
                SettingsServiceFactory = settingsServiceFactory;
                var browserService = browserServiceFactory.Create();

                LanguageServerProcess   = new LanguageServerClientProcess();
                CustomMessageTargetBase = new CustomMessageHandler(serviceProvider, EventAggregator, browserService, SettingsServiceFactory);

                Log.Ctor();
            }
            catch (Exception ex) {
                Log.Fatal(ex, nameof(LanguageServerClientBase));
            }
        }
Beispiel #2
0
 public CodeStreamService(IBrowserServiceFactory browserServiceFactory)
 {
     try {
         BrowserService = browserServiceFactory.Create();
     }
     catch (Exception ex) {
         Log.Error(ex, nameof(CodeStreamService));
     }
 }