Zendist
Zendist
CC#
Created by BlueHelmet on 6/4/2024 in #help
Blazor NavigationManager throws Unspecified navigation exeption.
It throws, but still works? Huh? Are you catching an exception that gets caught by the framework and is ignored, perhaps?
5 replies
CC#
Created by Core on 6/3/2024 in #help
How to block the execution of a method when running EF migration
What is calling these EF commands? The BG Service or the HTTP server?
24 replies
CC#
Created by Fady on 6/1/2024 in #help
✅ Typically how is an image stored?
If you can only see your own photo, I would probably base64-encode a thumbnail of the image into the DB and just cache it in-memory on first request, given how few users you have 😄. But good opportunity to learn about blobs and doing it right with SAS etc.
135 replies
CC#
Created by Fady on 6/1/2024 in #help
✅ Typically how is an image stored?
😄
135 replies
CC#
Created by Fady on 6/1/2024 in #help
✅ Typically how is an image stored?
The reason that we use per-user, is to detect malicious users and can shut down individuals instead of forcing all users to re-cache if we need to kick someone out.
135 replies
CC#
Created by Fady on 6/1/2024 in #help
✅ Typically how is an image stored?
As mentioned, I would generate a token for the entire container (probably named "user_images"?), per user. Then when the user goes to a profile, you use the token tacked on to the picture and can reuse that same token for all pictures for that one user.
135 replies
CC#
Created by Fady on 6/1/2024 in #help
✅ Typically how is an image stored?
You can allow anonymous access. But again, it depends on the requirements of your stakeholders. In the real world, you definitely do not want to allow public anonymous access to user pictures.
135 replies
CC#
Created by Fady on 6/1/2024 in #help
✅ Typically how is an image stored?
If it's ok to have public anonymous access to the pictures (definitely not OK in the real world 😄), you can skip the SAS token. Otherwise, the app can generate a container token per user that lasts for some time and keep reusing it.
135 replies
CC#
Created by Fady on 6/1/2024 in #help
✅ Typically how is an image stored?
If the SAS token keeps changing (i.e. you generate a new one for each request), the browser cache will not be used. Just FYI.
135 replies
CC#
Created by Fady on 6/1/2024 in #help
✅ Typically how is an image stored?
Huh? Where do you get that? It's setting the Cache-Control header for GET calls.
135 replies
CC#
Created by Fady on 6/1/2024 in #help
✅ Typically how is an image stored?
That's good advice. Azure blob storage sounds like the right approach for you, if you have a free subscription to play with. You don't always have access to persistent storage, that's why blob or cloud storage services can be useful. Then you have a blob URL in your DB instead of a file path.
135 replies
CC#
Created by Owltávio on 6/1/2024 in #help
Trying to create objects using a loop, but don't know what i'm doing wrong?
You're trying to use Register() like a class method (static) and not calling it on the instance.
7 replies
CC#
Created by Owltávio on 6/1/2024 in #help
Trying to create objects using a loop, but don't know what i'm doing wrong?
i.Register() instead.
7 replies
CC#
Created by Owltávio on 6/1/2024 in #help
Trying to create objects using a loop, but don't know what i'm doing wrong?
Show the code 😊.
7 replies
CC#
Created by SWEETPONY on 7/1/2023 in #help
✅ Is it possible to use union type in C#?
I like how concise the abstract record is. Can you show an example of usage?
14 replies
CC#
Created by Kendor on 7/1/2023 in #help
❔ ✅ Create Live Video Stream content using ASP.NET
Hi Kendor. What are you interested in making exactly? Mentioning ASP.NET sounds like you want to host video streams (calls?) for browsers to consume. Or is it something else?
5 replies
CC#
Created by SWEETPONY on 7/1/2023 in #help
✅ Is it possible to use union type in C#?
Or tagged union, depending on which FP circles you identify with.
14 replies
CC#
Created by SWEETPONY on 7/1/2023 in #help
✅ Is it possible to use union type in C#?
language-ext has some things like this if you prefer FP: https://github.com/louthy/language-ext The language doesn't have it by default (yet). What you're looking for is a discriminated union, right?
14 replies
CC#
Created by Jona4Play on 6/30/2023 in #help
❔ F#: General Memory Issue
Hmm. The HtmlDocument should lose all references right after you're done extracting the data from it. Unless it landed in Gen2 or LOH. Can you see which GC generation the data lives in?
14 replies