File tree Expand file tree Collapse file tree 2 files changed +8
-9
lines changed
Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -31,9 +31,9 @@ static void CleanUp(PosixSignalContext context)
3131 PosixSignalRegistration . Create ( PosixSignal . SIGHUP , CleanUp ) ;
3232
3333 var builder = Host . CreateApplicationBuilder ( args ) ;
34- builder . Services . Configure < TanjiOptions > ( builder . Configuration ) ;
35- builder . Services . AddSingleton < Program > ( ) ;
36- builder . Services . AddTanjiCore ( ) ;
34+ builder . Services . Configure < TanjiOptions > ( builder . Configuration )
35+ . AddSingleton < Program > ( )
36+ . AddTanjiCore ( ) ;
3737
3838 Console . Title = $ "Tanji(Core) - Press any key to exit...";
3939 IHost host = builder . Build ( ) ;
Original file line number Diff line number Diff line change 88using Microsoft . Extensions . Hosting ;
99using Microsoft . Extensions . DependencyInjection ;
1010
11- var builder = Host . CreateApplicationBuilder ( args ) ;
12- builder . Services . Configure < TanjiOptions > ( builder . Configuration ) ;
13- builder . Services . AddTanjiCore ( ) ;
14-
1511// Views (Windows, Dialogs, Pages)
16- builder . Services . AddWindowsFormsLifetime < MainView > ( ) ;
17- builder . Services . AddSingleton < PacketLoggerView > ( ) ;
12+ var builder = Host . CreateApplicationBuilder ( args ) ;
13+ builder . Services . Configure < TanjiOptions > ( builder . Configuration )
14+ . AddWindowsFormsLifetime < MainView > ( )
15+ . AddSingleton < PacketLoggerView > ( )
16+ . AddTanjiCore ( ) ;
1817
1918var host = builder . Build ( ) ;
2019Services = host . Services ;
You can’t perform that action at this time.
0 commit comments