public ExceptionListSettings(DbgDispatcherProvider dbgDispatcherProvider, DbgExceptionSettingsService dbgExceptionSettingsService, ISettingsService settingsService, DefaultExceptionDefinitionsProvider defaultExceptionDefinitionsProvider) { this.dbgDispatcherProvider = dbgDispatcherProvider ?? throw new ArgumentNullException(nameof(dbgDispatcherProvider)); this.dbgExceptionSettingsService = dbgExceptionSettingsService ?? throw new ArgumentNullException(nameof(dbgExceptionSettingsService)); this.settingsService = settingsService ?? throw new ArgumentNullException(nameof(settingsService)); this.defaultExceptionDefinitionsProvider = defaultExceptionDefinitionsProvider ?? throw new ArgumentNullException(nameof(defaultExceptionDefinitionsProvider)); dbgExceptionSettingsService.ExceptionsChanged += DbgExceptionSettingsService_ExceptionsChanged; dbgExceptionSettingsService.ExceptionSettingsModified += DbgExceptionSettingsService_ExceptionSettingsModified; dbgDispatcherProvider.Dbg(() => Load()); }
public ExceptionContext(UIDispatcher uiDispatcher, IClassificationFormatMap classificationFormatMap, ITextElementProvider textElementProvider, DbgExceptionSettingsService exceptionSettingsService, DbgExceptionFormatterService exceptionFormatterService, SearchMatcher searchMatcher) { UIDispatcher = uiDispatcher; ClassificationFormatMap = classificationFormatMap; TextElementProvider = textElementProvider; TextClassifierTextColorWriter = new TextClassifierTextColorWriter(); ExceptionSettingsService = exceptionSettingsService; ExceptionFormatterService = exceptionFormatterService; SearchMatcher = searchMatcher; }
void IDbgExceptionSettingsServiceListener.Initialize(DbgExceptionSettingsService dbgExceptionSettingsService) => new ExceptionListSettings(dbgDispatcherProvider, dbgExceptionSettingsService, settingsService, defaultExceptionDefinitionsProvider);