Huu Hai

Results 24 comments of Huu Hai

I just stomp upon this when doing authentication for solidjs, look like route guard is something we only hope for future. In now react, vue or angular is likely better...

As far as i have been used, GenericRepo doesnt really care about what `DbContext` lifetime as long as there's `DbContext` in `ServiceProvider`, i assume it safe to use, but let...

Update **it can't** since it expect inject directly `DbContext`, anyway this lib intends for ASP.NET project, Blazor has wilder lifetime management, hence not much we can rely on right now

i forked source gen version and build it myself using standard `Microsoft.CodeAnalysis.CSharp` 4.5.0 and it work fine, maybe there's some reason i dont know

this loc ```cs if (!context.SemanticModel.Compilation.HasLanguageVersionAtLeastEqualTo(LanguageVersion.CSharp11)) { return default; } ``` i dont see any point to force use 4.9.2 as 4.5.0 already contain definition for CSharp 11 and compatible with...

we can event add branch to detect .Net 6 `LanguageVersion.CSharp10` and .Net 7+ `LanguageVersion.CSharp11` , with .Net 6 we generate register as ```cs public static IEndpointRouteBuilder MapEndpoints(this IEndpointRouteBuilder endpoints) {...

i propose my very simple implementation that can use in Net 6 + ```cs // EndpointHandlerGenerator.cs using System.Collections.Immutable; using System.Text; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; namespace MinimalHelpers.Routing.Analyzers; [Generator] public...

This is because Visafora get override by `Keyword` and `Keyword - Flow` option in `Tool / Option / Enviroment / Font and Color` use these two config to setup your...

@martincostello hi it appear this problem start showing up again, all Get request get a strange `void` body in Asp.Net Core 8 minimal api project ![image](https://github.com/domaindrivendev/Swashbuckle.AspNetCore/assets/88715515/822c6a71-e658-46fd-a428-8ae3d0850d3f) you can see the...

I second this. Basically you create overloads that accept `JsonTypeInfo` as last parameter and just pass directly to `Serialize` `Deserialize` method of STG, no other complex stufff involve and suddenly...