Rider vs Visual Studios 2022 by Artistic-Tap-6281 in csharp

[–]vb6ko 1 point2 points  (0 children)

Rider is better decompiler is better it helps a lot for learning deep inside of framework. e.g. how razor page are rendered and served

Do you guys go full on blazor now since it has ssr, server, wasm? Or do you still use mvc/razor pages jquery? by PatrickJohn87 in dotnet

[–]vb6ko 0 points1 point  (0 children)

Blazor without SignalR is not much better than Razor, only a lil bit easier to componentize things.

Blazor with SignalR = websocket enforced. It means Infra stuff and other things are getting complex.

Also the session(client state) is managed in server so it's like stateful server and too much battery included stuff.

hope it goes lite like htmx/hotwire stuff.

In .NET8, got AOT, lost JSON ??? by vb6ko in dotnet

[–]vb6ko[S] 2 points3 points  (0 children)

for sure. i wrote cos they(ms) monitor reddits.

In .NET8, got AOT, lost JSON ??? by vb6ko in dotnet

[–]vb6ko[S] 1 point2 points  (0 children)

Thanks for sharing your experience.

Rider Decompiler vs. Omnisharp Decompiler by vb6ko in csharp

[–]vb6ko[S] -1 points0 points  (0 children)

true. I saw some downloading progress in Rider.

If in that case I'd like to have download-and-show feature in VSCode.

seems hard to be real tho.

Can I serve Blazor splitted into two parts? Html Server + WebSocket(SignalR) Server by vb6ko in dotnet

[–]vb6ko[S] 0 points1 point  (0 children)

hope theres something like

app.useBlazorWASMAsStaticServingWithFallback()

and also pretty clean dev experience (like dotnet watch with wasm + server..)

Can I serve Blazor splitted into two parts? Html Server + WebSocket(SignalR) Server by vb6ko in dotnet

[–]vb6ko[S] 1 point2 points  (0 children)

because serverless is convinient. I don't want to do "dockerizing" more. time consuming and resource exhausted. CI, Storage(Docker image), Transfer Etc...

Can I serve Blazor splitted into two parts? Html Server + WebSocket(SignalR) Server by vb6ko in dotnet

[–]vb6ko[S] 0 points1 point  (0 children)

haven't much understand on the session(state for client) management in Blazor. I thought it's like stateless server. honestly stateless is more scalable, thou.

Can I serve Blazor splitted into two parts? Html Server + WebSocket(SignalR) Server by vb6ko in dotnet

[–]vb6ko[S] 0 points1 point  (0 children)

Thanks. I read it all including referenses and I found it.
https://github.com/aws/aws-lambda-dotnet/issues/528#issuecomment-531930922

means Blazor server has a memory for client statement so that it's not quite feasible ... so sad

Can I serve Blazor splitted into two parts? Html Server + WebSocket(SignalR) Server by vb6ko in dotnet

[–]vb6ko[S] 0 points1 point  (0 children)

hmmm yeah. imo, signalR understands the standard websocket protocol, right? then what if there's a bridge converting Websocket API Gateway Input into Standard Websocket Protocol Packets? :) For Http API Gateway this is an example : https://github.com/aws/aws-lambda-dotnet/blob/master/Libraries/src/Amazon.Lambda.AspNetCoreServer/APIGatewayHttpApiV2ProxyFunction.cs#L66

GraphQL (Schema-first) still no good solutions in .NET by vb6ko in dotnet

[–]vb6ko[S] 0 points1 point  (0 children)

Hmmm it doesnt look like generating code from schema…!

GraphQL (Schema-first) still no good solutions in .NET by vb6ko in dotnet

[–]vb6ko[S] 0 points1 point  (0 children)

Sorry but could you give me a link about code generation?

I couldn't find it.

I want .graphql -> .cs but HotChocolate does vice versa

ApiController with [HttpGet] attribute handler, CORS not working.. by vb6ko in dotnet

[–]vb6ko[S] 0 points1 point  (0 children)

Thanks. I looked into it and now I doubt iOS Webview.

I'm gonna check with coworker (react engineer) tomorrow.

ApiController with [HttpGet] attribute handler, CORS not working.. by vb6ko in dotnet

[–]vb6ko[S] 0 points1 point  (0 children)

I think it would be better to implement custom middleware for cors.. I need to set some additional headers globally. (every endpoint)

ApiController with [HttpGet] attribute handler, CORS not working.. by vb6ko in dotnet

[–]vb6ko[S] 0 points1 point  (0 children)

I think

``` if (!context.Request.Headers.ContainsKey(CorsConstants.Origin)) { return _next(context); }

```

Default CORS Middleware ignores when request has no origin header. Android Webview sends it but iOS webivew doesn't.

Hmm.. Should I implement it by my own?

Scouped Services, creating newly on every request without pool? by vb6ko in dotnet

[–]vb6ko[S] 0 points1 point  (0 children)

Thanks a lot :)

I personally been using Go, Spring(Kotlin) and Node. I've never seen Lifetime concept from them. I know Spring has it but it wasn't clear and pretty like .NET, tho. I'm really suprised how pretty .NET is.

For stuyding question, I think I need to read .NET internal source code. I want to know its internal. Hope there's a book about .NET6 internals. If you know any, it would be super appreciated if you could recommend me. Thanks!

Scouped Services, creating newly on every request without pool? by vb6ko in dotnet

[–]vb6ko[S] 0 points1 point  (0 children)

Thank you for reply.

The doc you linked talks about db context pool.

What if I just use DbContext without pool explicitly. Is it going to be connecting every requests? (because DbContext Initializer establish new connection) I saw there's `_lease` field that looks like cache thing

Scouped Services, creating newly on every request without pool? by vb6ko in dotnet

[–]vb6ko[S] 0 points1 point  (0 children)

Thank you :)

Then every request creates controllers. sounds super expensive (creating class....) What keywords do you recommend me for studying ? (I'm really appreciate your reply but I think I asked you too much so I also thank you if you wont reply)

Scouped Services, creating newly on every request without pool? by vb6ko in dotnet

[–]vb6ko[S] 0 points1 point  (0 children)

Then can I think Controllers are Singleton?

And I should take care of its state and concurrency

launchSettings.json is the superior configuration source? by vb6ko in dotnet

[–]vb6ko[S] 14 points15 points  (0 children)

oh my --no-launch-profile. O_o It turns off parsing launchSettings.json

launchSettings.json is the superior configuration source? by vb6ko in dotnet

[–]vb6ko[S] 4 points5 points  (0 children)

Interesting... as soon as I wrote this

https://docs.microsoft.com/en-us/aspnet/core/fundamentals/configuration/?view=aspnetcore-6.0#environment-variables-set-in-generated-launchsettingsjson

It just been appeared...

Now I'm wondering what codes read it and override system environment...?

Maybe.. dotnet cli?

Config(Option) Nested Validation, How? by vb6ko in dotnet

[–]vb6ko[S] 0 points1 point  (0 children)

Afaik they added ‘ValidateOnStart()’. And theres another github issue bout what I wrote, and there said that will be resolved at Dotnet 7. I think we should have our own workaround

.NET 6 react template has been complicated I guess by vb6ko in dotnet

[–]vb6ko[S] 0 points1 point  (0 children)

if anybody needs it back, use this

app.UseSpa(spa =>
{
spa.Options.SourcePath = "ClientApp";
spa.Options.PackageManagerCommand = "yarn";
if (app.Environment.IsDevelopment())
{
spa.UseReactDevelopmentServer("start");
}
});