Skip to content

Commit 8bf05f9

Browse files
committed
Add default implementation
1 parent f7ff424 commit 8bf05f9

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

Libraries/src/Amazon.Lambda.Core/ILambdaContext.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,14 +85,16 @@ public interface ILambdaContext
8585
/// </summary>
8686
TimeSpan RemainingTime { get; }
8787

88+
#if NET8_0_OR_GREATER
8889
/// <summary>
8990
/// Gets the tenant id for the Lambda function.
9091
/// </summary>
91-
string TenantId { get; }
92+
string TenantId { get { return string.Empty; } }
9293

9394
/// <summary>
9495
/// The trace id generated by Lambda for distributed tracing across AWS services.
9596
/// </summary>
96-
string TraceId { get; }
97+
string TraceId { get { return string.Empty; } }
98+
#endif
9799
}
98100
}

0 commit comments

Comments
 (0)