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());
 }
Exemple #2
0
        DbgExceptionSettingsServiceImpl(DbgDispatcherProvider dbgDispatcherProvider, DefaultExceptionDefinitionsProvider defaultExceptionDefinitionsProvider, [ImportMany] IEnumerable <Lazy <IDbgExceptionSettingsServiceListener> > dbgExceptionSettingsServiceListeners)
        {
            lockObj = new object();
            this.dbgDispatcherProvider = dbgDispatcherProvider;
            this.defaultExceptionDefinitionsProvider = defaultExceptionDefinitionsProvider;
            toExceptionInfo = new Dictionary <DbgExceptionId, ExceptionInfo>();

            foreach (var lz in dbgExceptionSettingsServiceListeners)
            {
                lz.Value.Initialize(this);
            }
        }
 ExceptionListSettingsListener(DbgDispatcherProvider dbgDispatcherProvider, ISettingsService settingsService, DefaultExceptionDefinitionsProvider defaultExceptionDefinitionsProvider)
 {
     this.dbgDispatcherProvider = dbgDispatcherProvider;
     this.settingsService       = settingsService;
     this.defaultExceptionDefinitionsProvider = defaultExceptionDefinitionsProvider;
 }