Example #1
0
 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());
 }
Example #2
0
 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;
 }
Example #3
0
 void IDbgExceptionSettingsServiceListener.Initialize(DbgExceptionSettingsService dbgExceptionSettingsService) =>
 new ExceptionListSettings(dbgDispatcherProvider, dbgExceptionSettingsService, settingsService, defaultExceptionDefinitionsProvider);