File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
test/EFCore.MySql.IntegrationTests Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change 11using System ;
22using Pomelo . EntityFrameworkCore . MySql . IntegrationTests . Commands ;
3- using Microsoft . AspNetCore ;
43using Microsoft . AspNetCore . Hosting ;
54using Microsoft . Extensions . DependencyInjection ;
65using Microsoft . Extensions . Logging ;
6+ using Microsoft . Extensions . Hosting ;
77using Pomelo . EntityFrameworkCore . MySql . Tests ;
88
99namespace Pomelo . EntityFrameworkCore . MySql . IntegrationTests
@@ -41,11 +41,14 @@ public static void Main(string[] args)
4141 }
4242 }
4343
44- public static IWebHost BuildWebHost ( string [ ] args )
44+ public static IHost BuildWebHost ( string [ ] args )
4545 {
46- return WebHost . CreateDefaultBuilder ( args )
47- . UseUrls ( "http://*:5000" )
48- . UseStartup < Startup > ( )
46+ return Host . CreateDefaultBuilder ( args )
47+ . ConfigureWebHostDefaults ( webBuilder =>
48+ {
49+ webBuilder . UseUrls ( "http://*:5000" )
50+ . UseStartup < Startup > ( ) ;
51+ } )
4952 . Build ( ) ;
5053 }
5154
You can’t perform that action at this time.
0 commit comments