Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ trim_trailing_whitespace = true
[*.xml]
indent_size = 4

[src/AwsLambda.Host.Testing/HostFactoryResolver.cs]
[*HostFactoryResolver.cs]
ij_formatter_enabled = false
resharper_disable_formatter = true
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project>
<PropertyGroup>
<Version>2.0.0-beta.3</Version>
<Version>2.0.0-beta.5</Version>
<!-- SPDX license identifier for MIT -->
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<!-- Other useful metadata -->
Expand Down
10 changes: 5 additions & 5 deletions MinimalLambda.sln.DotSettings
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
&amp;lt;inspection_tool class="UnterminatedStatementJS" enabled="true" level="WARNING" enabled_by_default="true" /&amp;gt;
&amp;lt;/profile&amp;gt;&lt;/IDEA_SETTINGS&gt;&lt;RIDER_SETTINGS&gt;&amp;lt;profile&amp;gt;
&amp;lt;Language id="CSS"&amp;gt;
&amp;lt;Reformat&amp;gt;true&amp;lt;/Reformat&amp;gt;
&amp;lt;Rearrange&amp;gt;true&amp;lt;/Rearrange&amp;gt;
&amp;lt;Reformat&amp;gt;true&amp;lt;/Reformat&amp;gt;
&amp;lt;/Language&amp;gt;
&amp;lt;Language id="EditorConfig"&amp;gt;
&amp;lt;Reformat&amp;gt;true&amp;lt;/Reformat&amp;gt;
Expand All @@ -18,9 +18,9 @@
&amp;lt;Reformat&amp;gt;true&amp;lt;/Reformat&amp;gt;
&amp;lt;/Language&amp;gt;
&amp;lt;Language id="HTML"&amp;gt;
&amp;lt;Reformat&amp;gt;true&amp;lt;/Reformat&amp;gt;
&amp;lt;OptimizeImports&amp;gt;true&amp;lt;/OptimizeImports&amp;gt;
&amp;lt;Rearrange&amp;gt;true&amp;lt;/Rearrange&amp;gt;
&amp;lt;Reformat&amp;gt;true&amp;lt;/Reformat&amp;gt;
&amp;lt;/Language&amp;gt;
&amp;lt;Language id="HTTP Request"&amp;gt;
&amp;lt;Reformat&amp;gt;true&amp;lt;/Reformat&amp;gt;
Expand All @@ -38,9 +38,9 @@
&amp;lt;Reformat&amp;gt;true&amp;lt;/Reformat&amp;gt;
&amp;lt;/Language&amp;gt;
&amp;lt;Language id="JavaScript"&amp;gt;
&amp;lt;Reformat&amp;gt;true&amp;lt;/Reformat&amp;gt;
&amp;lt;OptimizeImports&amp;gt;true&amp;lt;/OptimizeImports&amp;gt;
&amp;lt;Rearrange&amp;gt;true&amp;lt;/Rearrange&amp;gt;
&amp;lt;Reformat&amp;gt;true&amp;lt;/Reformat&amp;gt;
&amp;lt;/Language&amp;gt;
&amp;lt;Language id="Markdown"&amp;gt;
&amp;lt;Reformat&amp;gt;false&amp;lt;/Reformat&amp;gt;
Expand Down Expand Up @@ -70,14 +70,14 @@
&amp;lt;Reformat&amp;gt;true&amp;lt;/Reformat&amp;gt;
&amp;lt;/Language&amp;gt;
&amp;lt;Language id="XML"&amp;gt;
&amp;lt;Reformat&amp;gt;true&amp;lt;/Reformat&amp;gt;
&amp;lt;OptimizeImports&amp;gt;true&amp;lt;/OptimizeImports&amp;gt;
&amp;lt;Rearrange&amp;gt;true&amp;lt;/Rearrange&amp;gt;
&amp;lt;Reformat&amp;gt;true&amp;lt;/Reformat&amp;gt;
&amp;lt;/Language&amp;gt;
&amp;lt;Language id="yaml"&amp;gt;
&amp;lt;Reformat&amp;gt;true&amp;lt;/Reformat&amp;gt;
&amp;lt;/Language&amp;gt;
&amp;lt;/profile&amp;gt;&lt;/RIDER_SETTINGS&gt;&lt;/Profile&gt;</s:String>
&amp;lt;/profile&amp;gt;&lt;/RIDER_SETTINGS&gt;&lt;CSharpFormatDocComments&gt;True&lt;/CSharpFormatDocComments&gt;&lt;/Profile&gt;</s:String>
<s:String x:Key="/Default/CodeStyle/CodeCleanup/RecentlyUsedProfile/@EntryValue">Built-in: Full Cleanup</s:String>
<s:String x:Key="/Default/CodeStyle/CodeFormatting/CSharpCodeStyle/BRACES_FOR_DOWHILE/@EntryValue">NotRequired</s:String>
<s:String x:Key="/Default/CodeStyle/CodeFormatting/CSharpCodeStyle/BRACES_FOR_FIXED/@EntryValue">NotRequired</s:String>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@ namespace MinimalLambda;
/// <remarks>
/// <para>
/// <see cref="IEventFeatureProviderFactory" /> creates <see cref="IFeatureProvider" />
/// instances for specific event types during Lambda invocations. The factory enables
/// lazy registration of event feature providers. This factory is registered automatically
/// at startup.
/// instances for specific event types during Lambda invocations. The factory enables lazy
/// registration of event feature providers. This factory is registered automatically at
/// startup.
/// </para>
/// </remarks>
public interface IEventFeatureProviderFactory
{
/// <summary>Creates a feature provider for the specified event type.</summary>
/// <typeparam name="T">The type of event object to create a provider for.</typeparam>
/// <returns>
/// An <see cref="IFeatureProvider" /> that can create <see cref="IEventFeature" />
/// instances for the specified type.
/// An <see cref="IFeatureProvider" /> that can create <see cref="IEventFeature" /> instances
/// for the specified type.
/// </returns>
IFeatureProvider Create<T>();
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ namespace MinimalLambda;
/// <remarks>
/// <para>
/// <see cref="IResponseFeatureProviderFactory" /> creates <see cref="IFeatureProvider" />
/// instances for specific response types during Lambda invocations. The factory enables
/// lazy registration of response feature providers. This factory is registered automatically
/// at startup.
/// instances for specific response types during Lambda invocations. The factory enables lazy
/// registration of response feature providers. This factory is registered automatically at
/// startup.
/// </para>
/// </remarks>
public interface IResponseFeatureProviderFactory
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,14 @@ public static class DefaultLambdaJsonSerializerOptions
/// <see cref="DefaultLambdaJsonSerializer" />.
/// </summary>
/// <remarks>
/// <para>Configures null-value ignoring, case-insensitive property names, and the AWS naming policy.</para>
/// <para>Adds the AWS-provided converters for dates, memory streams, constant classes, and byte arrays.</para>
/// <para>
/// Configures null-value ignoring, case-insensitive property names, and the AWS naming
/// policy.
/// </para>
/// <para>
/// Adds the AWS-provided converters for dates, memory streams, constant classes, and byte
/// arrays.
/// </para>
/// </remarks>
/// <returns>Configured JSON serializer options suitable for AWS Lambda payloads.</returns>
public static JsonSerializerOptions Create()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ public static class MiddlewareOpenTelemetryExtensions
/// <remarks>
/// <para>
/// Adds middleware that wraps each Lambda invocation with distributed tracing using the
/// <see cref="AWSLambdaWrapper" /> from the OpenTelemetry AWS Lambda instrumentation
/// package. A root span is created for each invocation with Lambda context information.
/// <see cref="AWSLambdaWrapper" /> from the OpenTelemetry AWS Lambda instrumentation package.
/// A root span is created for each invocation with Lambda context information.
/// </para>
/// <para>
/// <b>Middleware Placement:</b> Call this method early in the middleware pipeline to
/// capture the execution time of all subsequent middleware and handler logic.
/// <b>Middleware Placement:</b> Call this method early in the middleware pipeline to capture
/// the execution time of all subsequent middleware and handler logic.
/// </para>
/// <para>
/// <b>TracerProvider Registration Required:</b> A <see cref="TracerProvider" /> must be
Expand Down
4 changes: 0 additions & 4 deletions src/MinimalLambda.Testing/DeferredHostBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -122,13 +122,9 @@ public void EntryPointCompleted(Exception? exception)
// If the entry point completed we'll set the tcs just in case the application doesn't call
// IHost.Start/StartAsync.
if (exception is not null)
{
_hostStartTcs.TrySetException(exception);
}
else
{
_hostStartTcs.TrySetResult();
}

_entryPointCompletionTcs.TrySetResult(exception);
}
Expand Down
Loading
Loading