mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
parent
4cab8e5fa8
commit
07673e740f
4 changed files with 3 additions and 4 deletions
|
|
@ -1,2 +0,0 @@
|
|||
[*.{cs,vb}]
|
||||
dotnet_diagnostic.CA2007.severity = none
|
||||
|
|
@ -33,6 +33,6 @@ internal static class OpenApiGenConfiguration
|
|||
options.DocumentFilter<OpenApiTags.TagDescriptionsDocumentFilter>();
|
||||
|
||||
// allow re-using simple type names like "Response"
|
||||
options.CustomSchemaIds(s => s.FullName?.Replace("+", ".", StringComparison.InvariantCultureIgnoreCase));
|
||||
options.CustomSchemaIds(s => s.FullName?.Replace("+", "."));
|
||||
};
|
||||
}
|
||||
|
|
@ -76,7 +76,7 @@ private sealed class Handler(QueryDbContext ctx, IMemoryCache cache) : IRequestH
|
|||
{
|
||||
public Task<Response?> Handle(Request request, CancellationToken _)
|
||||
{
|
||||
return cache.GetOrCreateAsync($"{nameof(GetListDetails)}_{request.Id}", _ => Query(ctx, request.Id));
|
||||
return cache.GetOrCreateAsync($"{nameof(GetListDetails)}_{request.Id}", entry => Query(ctx, request.Id));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
using FilterLists.Directory.Infrastructure.Persistence.Queries;
|
||||
using FilterLists.Directory.Infrastructure.Persistence.Queries.Context;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Diagnostics;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.Hosting;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue