File tree Expand file tree Collapse file tree 2 files changed +9
-20
lines changed
test/test-applications/integrations/TestApplication.HttpServer Expand file tree Collapse file tree 2 files changed +9
-20
lines changed Original file line number Diff line number Diff line change 14
14
// limitations under the License.
15
15
// </copyright>
16
16
17
+ using TestApplication . HttpServer ;
17
18
using TestApplication . Shared ;
18
19
19
- namespace TestApplication . HttpServer ;
20
+ ConsoleHelper . WriteSplashScreen ( args ) ;
20
21
21
- public class Program
22
- {
23
- public static void Main ( string [ ] args )
24
- {
25
- ConsoleHelper . WriteSplashScreen ( args ) ;
22
+ var builder = WebApplication . CreateBuilder ( args ) ;
26
23
27
- var builder = WebApplication . CreateBuilder ( args ) ;
24
+ const string requestPath = "/request" ;
25
+ var app = builder . Build ( ) ;
26
+ using var observer = new LifetimeObserver ( app , requestPath ) ;
28
27
29
- var requestPath = "/request" ;
30
- var app = builder . Build ( ) ;
31
- using var observer = new LifetimeObserver ( app , requestPath ) ;
28
+ app . UseWelcomePage ( "/alive-check" ) ;
29
+ app . MapGet ( requestPath , ( ) => "TestApplication.HttpServer" ) ;
32
30
33
- app . UseWelcomePage ( "/alive-check" ) ;
34
- app . MapGet ( requestPath , ( ) =>
35
- {
36
- return "TestApplication.HttpServer" ;
37
- } ) ;
38
-
39
- app . Run ( ) ;
40
- }
41
- }
31
+ app . Run ( ) ;
Original file line number Diff line number Diff line change 5
5
</PropertyGroup >
6
6
7
7
<ItemGroup >
8
- <PackageReference Include =" Microsoft.AspNetCore" Version =" 2.2.0" />
9
8
<PackageReference Include =" Microsoft.Extensions.Configuration.EnvironmentVariables" Version =" 8.0.0" />
10
9
<PackageReference Include =" Microsoft.Extensions.Logging" Version =" 8.0.0" />
11
10
<PackageReference Include =" Microsoft.Extensions.Logging.Abstractions" Version =" 8.0.1" />
You can’t perform that action at this time.
0 commit comments