File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -43,21 +43,20 @@ public App()
4343#endif
4444
4545 RxAppBuilder . CreateReactiveUIBuilder ( )
46+ . WithExceptionHandler ( ex =>
47+ {
48+ Application . Current ? . Dispatcher . Invoke ( ( ) =>
49+ {
50+ MessageBox . Show (
51+ $ "ReactiveUI Pipeline Exception:\n \n { ex . Message } \n \n Stack Trace:\n { ex . StackTrace } ",
52+ "ReactiveUI Error" ,
53+ MessageBoxButton . OK ,
54+ MessageBoxImage . Error ) ;
55+ } ) ;
56+ } )
4657 . WithCoreServices ( )
4758 . BuildApp ( ) ;
4859
49- RxApp . DefaultExceptionHandler = Observer . Create < Exception > ( ex =>
50- {
51- Application . Current ? . Dispatcher . Invoke ( ( ) =>
52- {
53- MessageBox . Show (
54- $ "ReactiveUI Pipeline Exception:\n \n { ex . Message } \n \n Stack Trace:\n { ex . StackTrace } ",
55- "ReactiveUI Error" ,
56- MessageBoxButton . OK ,
57- MessageBoxImage . Error ) ;
58- } ) ;
59- } ) ;
60-
6160 Locator . CurrentMutable . RegisterViewsForViewModels ( Assembly . GetEntryAssembly ( ) ) ;
6261 Locator . CurrentMutable . RegisterManditoryDependencies ( ) ;
6362 Locator . CurrentMutable . Register < IRecycleBin > ( ( ) => new RecycleBin ( ) ) ;
You can’t perform that action at this time.
0 commit comments