Kosta
✅ Mvvm toolkit - messenger not working? Recive messege not invoked
Hey there im trying to recieve a simple messege using messenger
Got this code:
So why dont i ever go into the recive messege? i do send the messege, but debug point wont go into recive method
4 replies
❔ Source Gen fails- Im guessing smth is wrong with my setup? simplest code
I have no idea whats going on actually, check out the View Model.
using mvvm toolkit.
Code:
https://github.com/KostaKing/CW
3 replies
❔ Why do we need to provide values for base class we are inheriting from?
For example i have this:
Why do i need to base the Id back to the base class? what does it even do? How does the flow work? How does it know to set the id of the answer class because we are passing it to the base class?
5 replies
❔ Why do my source generated properties are unreacheable in code? using mvvm toolkit
Hello i got the following code:
I cant compile, tells me buttonOne etc dont exsist in the current context,
The Repo:
https://github.com/KostaKing/Calculator/tree/master/Calculator/ViewModels
Anybody has any idea?
242 replies
❔ Azure Blob storage and multi tenancy, how to get a list of blobs with a specific key?
I've got an application based on the abp framework that gets a sentence from a user and is returning an audio file, I want to save that with a string like UserId-SessonID-CreationTime on the blob storage in azure, problem is i only have a method to get 1 blob, like GetBlob(key)
I cannot get a list, no such method exsist.
What basically im asking is how do i structure it? maybe blob storage aint the way?
Perhaps another sql server that contains the key and the userID associated with it, and then query the blob storage in a foreach?
The application is configured to use multi tenancy if it helps at all,
The document i've been reading:
https://docs.abp.io/en/abp/latest/Blob-Storing
2 replies
❔ How does the execution pipeline works with interfaces that implement methods?
Lets say we have the icommand interfact, it has to methods : canExcute and Excute,
When i bind said command to a button and click it, How does it know to go into the execute method? whats going on behind? Who is responsible for telling the code to go into that methode and where can i find it?
5 replies
❔ Why is my grpc so much slower then my minimal api? Need The Csharp Gods
Hey there a bit of an odd question
I've downloaded the code for this :
https://medium.com/geekculture/build-high-performant-microservices-using-grpc-and-net-6-adde158c5ac
basically is streams 1 line at a time to a client~---takes about 1 min to stream 1.5 mil lines,
Tried replicating the same behavior with Minimal Api and not sure how,
But it takes 13 seconds to read and stream all 5 million records,
Shouldnt it be slower?
I think my code is badly messed up and probably rotter logic all over the place 😄
Any Help would be swell
My Ui Code:
using HttpClient client = new();
app.MapGet("/test", async () =>
{
return MakeHttpCall();
});
Also the ui seems to start prining the text only when its all done, meaning not rly streaming..
(removed all the code regarding watch and count)
Save me C# Gods
2 replies
❔ Explain This Speed Difference to me (Grpc vs Rest)
So i got two projects, each ones reads 5mil lines from a csv and stream to client.
MinimalApi approach much faster-Unsure why.
The miminalApi one streams all the 5 million records in a min or so.
Maybe becuase its all local?
The Code:
```
2 replies
Trying to compare grpc to minimal api performence- minimal much faster, Logic probably rotten
So i got this grpc client that streams data from a csv to a console and just prints it,
in 1 minute it can do about 1.5mil records.
On the other hand i got this minimal api, Now here begins the problem
Im guessing I need to use httpclient to make the call inorder to compare?
Because before i had this:
And this was twice as fast , 3 million records in a minute then i figured out im testing it wrong,
However how do i use a client and what methode i need to invoke in the foreach?
How do i procced? obviously im doing smth/multiple things wrong.
If i try to do smth like this
I get a "does not contain extension defenition for getasyncenumarator
7 replies
Silly Question -How do I clone these grpc examples?
https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/tutorials/grpc/grpc-start/sample6
Offical Ms repo, wanna clone both but cant, No Code button or anything, what am i missing?
3 replies