protected override void OnStartup(StartupEventArgs e) { Dispatcher.UnhandledException += Dispatcher_UnhandledException; ViewLocator.RegisterViews(Resources, typeof(App).Assembly); _fusInterface = new FusApplicationInterface(); _fusInterface.Start(); Dispatcher.Hooks.DispatcherInactive += (_, __) => _fusInterface.CallIdle(); base.OnStartup(e); // prepare for messages _fusInterface.GetGenericMessageInterface().MessageRequested += App_MessageRequested; Log.Logger = new LoggerConfiguration() .Enrich.WithThreadId() .MinimumLevel.Debug() //.MinimumLevel.Information() //.MinimumLevel.Override("Dicom", LogEventLevel.Warning) .WriteTo.Console(outputTemplate: "[{Timestamp} {Level:u3}] [{SourceContext}] [tid:{ThreadId}] {Message:lj}{NewLine}{Exception}") .CreateLogger(); }
protected override void OnStartup(StartupEventArgs e) { ViewLocator.RegisterViews(Resources, typeof(App).Assembly); base.OnStartup(e); }