Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
3893806
chore: add plan for Minimal API serialization
feO2x Jan 15, 2026
d11a799
feat: add Minimal API integration
feO2x Jan 16, 2026
2d688ad
chore: move ErrorCategoryExtensions to Light.Results
feO2x Jan 16, 2026
a5e3a99
refactor: renamed Light.Results.AspNetCore.Abstractions project to Li…
feO2x Jan 16, 2026
acfa3b9
refactor: renamed LightProblemDetails to LightProblemDetailsResult
feO2x Jan 16, 2026
bf2ccbb
chore: add Guard Clause to LightProblemDetailsResult
feO2x Jan 16, 2026
6aa6ddd
refactor: LightResultsMinimalApiJsonContext directly derives from Jso…
feO2x Jan 16, 2026
c5fcc50
refactor: move IHttpResultEnricher to own namespace
feO2x Jan 16, 2026
2c023c4
feat: introduce DefaultResultFactory
feO2x Jan 16, 2026
319678a
refactor: removed private method in HttpContextInjectionMiddleware, a…
feO2x Jan 17, 2026
21797fe
test: add additional tests in HttpContextInjectionMiddlewareTests
feO2x Jan 17, 2026
14621c8
chore: adjust .editorconfig so that slnx files use indentation of 2 s…
feO2x Jan 17, 2026
5d1a76f
chore: add missing AI plans to solution
feO2x Jan 17, 2026
95771ad
chore: switch from Windsurf rules to agents.md
feO2x Jan 17, 2026
f75750e
chore: add additional XML comments
feO2x Jan 17, 2026
8ac565d
refactor: move HttpStatusCodeInfo to Light.Results, dissolve ErrorCat…
feO2x Jan 17, 2026
5a64c16
chore: add agents.md files to slnx
feO2x Jan 17, 2026
2fe7ef2
build: update to .NET SDK 10.0.102
feO2x Jan 17, 2026
9fd6ac2
build: update System.Collections.Immutable to 10.0.2
feO2x Jan 17, 2026
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 @@ -5,7 +5,7 @@ indent_style = space
indent_size = 4
insert_final_newline = true

[{*.props,*.csproj,*.xml,*.json,*.jsonc,*.yml,*.yaml}]
[{*.props,*.csproj,*.xml,*.json,*.jsonc,*.yml,*.yaml,*.slnx}]
indent_size = 2

[*.cs]
Expand Down
11 changes: 0 additions & 11 deletions .windsurf/rules/general-rules.md

This file was deleted.

2 changes: 1 addition & 1 deletion Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="18.0.1" />
<PackageVersion Include="Nullable" Version="1.3.1" />
<PackageVersion Include="RequiredMemberAttribute" Version="1.0.0" />
<PackageVersion Include="System.Collections.Immutable" Version="10.0.1" />
<PackageVersion Include="System.Collections.Immutable" Version="10.0.2" />
<PackageVersion Include="System.Threading.Tasks.Extensions" Version="4.6.3" />
<PackageVersion Include="xunit.runner.visualstudio" Version="3.1.5" />
<PackageVersion Include="xunit.v3" Version="3.2.1" />
Expand Down
44 changes: 27 additions & 17 deletions Light.Results.slnx
Original file line number Diff line number Diff line change
@@ -1,32 +1,42 @@
<Solution>
<Folder Name="/.github/" />
<Folder Name="/.github/actions/" />
<Folder Name="/.github/actions/cache-nuget/">
<File Path=".github\actions\cache-nuget\action.yml" />
</Folder>
<Folder Name="/.github/workflows/">
<File Path=".github\workflows\build-and-test.yml" />
</Folder>
<Folder Name="/ai-plans/">
<File Path="ai-plans\0001-metadata.md" />
<File Path="ai-plans\0003-result-optimization.md" />
</Folder>
<Folder Name="/benchmarks/">
<Project Path="benchmarks/Benchmarks/Benchmarks.csproj" />
</Folder>
<Folder Name="/solution-items/">
<Folder Name="/.github/" />
<Folder Name="/.github/actions/" />
<Folder Name="/.github/actions/cache-nuget/">
<File Path=".github\actions\cache-nuget\action.yml" />
</Folder>
<Folder Name="/.github/workflows/">
<File Path=".github\workflows\build-and-test.yml" />
</Folder>
<Folder Name="/ai-plans/">
<File Path="ai-plans\0001-metadata.md" />
<File Path="ai-plans\0003-result-optimization.md" />
<File Path="ai-plans\0005-functional-extensions.md" />
<File Path="ai-plans\0007-minimal-api-serialization.md" />
</Folder>
<Folder Name="/benchmarks/">
<Project Path="benchmarks/Benchmarks/Benchmarks.csproj" />
</Folder>
<Folder Name="/solution-items/">
<File Path=".editorconfig" />
<File Path=".gitignore" />
<File Path="agents.md" />
<File Path="Directory.Build.props" />
<File Path="Directory.Packages.props" />
<File Path="global.json" />
<File Path="global.json" />
<File Path="LICENSE" />
<File Path="Light.Results.sln.DotSettings" />
</Folder>
<Folder Name="/src/">
<File Path="src\agents.md" />
<Project Path="src/Light.Results/Light.Results.csproj" />
<Project Path="src\Light.Results.AspNetCore.MinimalApis\Light.Results.AspNetCore.MinimalApis.csproj" />
<Project Path="src\Light.Results.AspNetCore.Shared\Light.Results.AspNetCore.Shared.csproj" />
</Folder>
<Folder Name="/tests/">
<File Path="tests\agents.md" />
<Project Path="tests/Light.Results.Tests/Light.Results.Tests.csproj" />
<Project
Path="tests\Light.Results.AspNetCore.MinimalApis.Tests\Light.Results.AspNetCore.MinimalApis.Tests.csproj" />
<Project Path="tests\Light.Results.AspNetCore.Shared.Tests\Light.Results.AspNetCore.Shared.Tests.csproj" />
</Folder>
</Solution>
13 changes: 13 additions & 0 deletions agents.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Root Agents.md

Light.Results is a lightweight, high-performance library implementing the Result Pattern for .NET. It stands out for reducing allocations and being able to serialize and deserialize results across different protocols (HTTP via RFC-9457, gRPC, Asynchronous Messaging). Extensibility is less important than performance.

## General Rules

In our Directory.Build.props files in this solution, the following rules are defined:

- Implicit usings or global usings are not allowed - use explicit using statements for clarity.
- Light.Results project is built with .NET Standard 2.0, but you can use C# 14 features.
- All other projects use .NET 10, including the test projects.
- The library is not published yet, you can make breaking changes.
- `<TreatWarningsAsErrors>` is enabled in Release builds, so your code changes must not generate warnings.
Loading