Skip to content

Commit d51a2dd

Browse files
committed
fixed warning and error
1 parent eb50152 commit d51a2dd

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

DockerizedTesting.RabbitMQ/RabbitMqFixture.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,11 @@ protected override async Task<bool> IsContainerRunning(int[] ports)
6868

6969
}
7070
}
71-
return true;
71+
return await Task.FromResult(true);
7272
}
7373
catch
7474
{
75-
return false;
75+
return await Task.FromResult(false);
7676
}
7777
}
7878

Examples/ExampleProject/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ public static void Main(string[] args)
1515
webBuilder.Configure(a =>
1616
{
1717
a.UseRouting();
18-
a.UseEndpoints(r => r.MapGet("/",
19-
r => r.Response.WriteAsync("Hello world!")));
18+
a.UseEndpoints(r => r.MapGet("/", new RequestDelegate(
19+
c => c.Response.WriteAsync("Hello world!"))));
2020
});
2121
}).Build().Run();
2222
}

0 commit comments

Comments
 (0)