mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
parent
937abe86ea
commit
4df6661830
4 changed files with 4 additions and 3 deletions
2
services/.editorconfig
Normal file
2
services/.editorconfig
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
[*.{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("+", "."));
|
||||
options.CustomSchemaIds(s => s.FullName?.Replace("+", ".", StringComparison.InvariantCultureIgnoreCase));
|
||||
};
|
||||
}
|
||||
|
|
@ -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}", entry => Query(ctx, request.Id));
|
||||
return cache.GetOrCreateAsync($"{nameof(GetListDetails)}_{request.Id}", _ => Query(ctx, request.Id));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
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