Skip to content

Commit 1b9622c

Browse files
committed
rename RegisterBeforeSnapshotRequest to GetBeforeSnapshotRequests
1 parent d30e76f commit 1b9622c

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

Libraries/src/Amazon.Lambda.AspNetCoreServer/AbstractAspNetCoreFunction.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ protected virtual IHostBuilder CreateHostBuilder()
289289
/// ]]>
290290
/// </code>
291291
/// </summary>
292-
protected virtual IEnumerable<HttpRequestMessage> RegisterBeforeSnapshotRequest() =>
292+
protected virtual IEnumerable<HttpRequestMessage> GetBeforeSnapshotRequests() =>
293293
Enumerable.Empty<HttpRequestMessage>();
294294
#endif
295295

@@ -331,7 +331,7 @@ protected void Start()
331331

332332
Amazon.Lambda.Core.SnapshotRestore.RegisterBeforeSnapshot(async () =>
333333
{
334-
var beforeSnapstartRequests = RegisterBeforeSnapshotRequest();
334+
var beforeSnapstartRequests = GetBeforeSnapshotRequests();
335335

336336
foreach (var httpRequest in beforeSnapstartRequests)
337337
{

Libraries/test/Amazon.Lambda.AspNetCoreServer.Test/TestApiGatewayHttpApiV2Calls.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ public async Task TestTraceIdSetFromLambdaContext()
284284

285285
#if NET8_0_OR_GREATER
286286
/// <summary>
287-
/// Verifies that <see cref="HttpV2LambdaFunction.RegisterBeforeSnapshotRequest"/> is invoked during startup.
287+
/// Verifies that <see cref="HttpV2LambdaFunction.GetBeforeSnapshotRequests"/> is invoked during startup.
288288
/// </summary>
289289
/// <returns></returns>
290290
[Fact]

Libraries/test/TestWebApp/HttpApiV2LambdaFunction.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace TestWebApp
77
public class HttpV2LambdaFunction : APIGatewayHttpApiV2ProxyFunction<Startup>
88
{
99
#if NET8_0_OR_GREATER
10-
protected override IEnumerable<HttpRequestMessage> RegisterBeforeSnapshotRequest() =>
10+
protected override IEnumerable<HttpRequestMessage> GetBeforeSnapshotRequests() =>
1111
[
1212
new HttpRequestMessage
1313
{

0 commit comments

Comments
 (0)