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
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ The solution is organized into the following projects. Understand their roles to

- **DeepWiki**: Provides access to an extensive knowledge base for the `bitfoundation/bitplatform` and `riok/mapperly` repositories.
- **Website Fetcher**: Gathers information from URLs provided by the user, using `fetch` or `get_web_pages` tools.
- **Microsoft Learn**: Provides access to official Microsoft documentation and code samples for Azure, .NET Aspire, .NET MAUI, Entity Framework Core, SignalR, Microsoft.Extensions.AI, SQL Server, and other Microsoft technologies. Use `microsoft_docs_search` to find relevant documentation and `microsoft_code_sample_search` to find official code examples.

## 5. Mandatory Workflow

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,5 +134,6 @@
<PackageVersion Include="Microsoft.Playwright.MSTest.v4" Version="1.56.0" />
<PackageVersion Include="ZiggyCreatures.FusionCache.AspNetCore.OutputCaching" Version="2.4.0" />
<PackageVersion Include="ZiggyCreatures.FusionCache.OpenTelemetry" Version="2.4.0" />
<PackageVersion Include="ZiggyCreatures.FusionCache.Serialization.SystemTextJson" Version="2.4.0" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@
<PackageReference Include="OpenTelemetry.Resources.OperatingSystem" />
<PackageReference Include="OpenTelemetry.Resources.Process" />
<PackageReference Include="OpenTelemetry.Resources.ProcessRuntime" />
<PackageReference Include="ZiggyCreatures.FusionCache.AspNetCore.OutputCaching" />
<PackageReference Include="ZiggyCreatures.FusionCache.OpenTelemetry" />
<PackageReference Include="ZiggyCreatures.FusionCache.AspNetCore.OutputCaching" />
<PackageReference Include="ZiggyCreatures.FusionCache.Serialization.SystemTextJson" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
using OpenTelemetry.Metrics;
using OpenTelemetry.Resources;
using OpenTelemetry.Trace;
using ZiggyCreatures.Caching.Fusion;
using ZiggyCreatures.Caching.Fusion.Serialization.SystemTextJson;

namespace Microsoft.Extensions.Hosting;

Expand Down Expand Up @@ -44,7 +46,10 @@ public static TBuilder AddServerSharedServices<TBuilder>(this TBuilder builder)
}, excludeDefaultPolicy: true);
});

services.AddFusionCache();
services.AddFusionCache()
// Auto-clone cached objects to avoid further issues after scaling out and switching to distributed caching.
.WithOptions(opt => opt.DefaultEntryOptions.EnableAutoClone = true)
.WithSerializer(new FusionCacheSystemTextJsonSerializer());
services.AddFusionOutputCache(); // For ASP.NET Core Output Caching with FusionCache

services.AddHttpContextAccessor();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace Boilerplate.Shared.Exceptions;
namespace Boilerplate.Shared.Exceptions;

public abstract partial class KnownException : Exception
public abstract partial class KnownException : ApplicationException
{
public KnownException(string message)
: base(message)
Expand Down
Loading