Core
Core
Explore posts from servers
CC#
Created by Oliver on 12/18/2024 in #help
Optimizing Large i18n Loading in Blazor
I have no idea why could it take so long, even images load faster. Suppose your internet connection is fast, the request time should not even be noticeable
14 replies
CC#
Created by Oliver on 12/18/2024 in #help
Optimizing Large i18n Loading in Blazor
never head of that, so the settings are retrieved from a database?
14 replies
CC#
Created by Oliver on 12/18/2024 in #help
Optimizing Large i18n Loading in Blazor
Ahhhh ://, in that case no idea
14 replies
CC#
Created by Oliver on 12/18/2024 in #help
Optimizing Large i18n Loading in Blazor
Only downside is, lanugage selection must be disabled until everything loads
14 replies
CC#
Created by Oliver on 12/18/2024 in #help
Optimizing Large i18n Loading in Blazor
I have 0 experience with Blazor, but can't you just load settings for a single language e.g. English. After startup load the rest too
14 replies
CC#
Created by Pieter on 12/16/2024 in #help
Mock UserManager in unit tests (Student)
I don't think you can mock it. I had this problem in the past, and I remember there was a solution for it on stackoverflow. The best I can do is link that answer: https://stackoverflow.com/a/52562694/14338059
4 replies
CC#
Created by Core on 12/14/2024 in #help
✅ Downloading file with HttpClient does not work
Thank you for helping me
11 replies
CC#
Created by Core on 12/14/2024 in #help
✅ Downloading file with HttpClient does not work
also I've exhausted my daily download limit, now I'm trying to download from Dropbox.... But the issue was the same when I tried to download from the original site
11 replies
CC#
Created by Core on 12/14/2024 in #help
✅ Downloading file with HttpClient does not work
I guess it's not about the user-agent
11 replies
CC#
Created by Core on 12/14/2024 in #help
✅ Downloading file with HttpClient does not work
Yes, unfortunately it's the same with GetBytes. Actually, the website specifically hands out an access token and an URL that exposes the file
11 replies
CC#
Created by Core on 12/12/2024 in #help
✅ Disposable class level property
Thank you!
8 replies
CC#
Created by WAASUL on 12/2/2024 in #help
✅ Ef-core query efficiency?
if the log level is Information
27 replies
CC#
Created by WAASUL on 12/2/2024 in #help
✅ Ef-core query efficiency?
yes, EF will log the translated SQL queries to the console
27 replies
CC#
Created by WAASUL on 12/2/2024 in #help
✅ Ef-core query efficiency?
The first one, since you only select specific fields. Note that in the first statement AsNoTracking is redundant, an entity is not tracked when Select is used
27 replies
CC#
Created by Core on 11/30/2024 in #help
✅ SkiaSharp apply gradient on the whole canvas except to one color
All I needed to do is to create a shader and use it when drawing....
6 replies
CC#
Created by Core on 11/30/2024 in #help
✅ SkiaSharp apply gradient on the whole canvas except to one color
Gosh I found a solution and it was too easy.....
6 replies
CC#
Created by Core on 11/30/2024 in #help
✅ SkiaSharp apply gradient on the whole canvas except to one color
yes I can, bu I thought there is a cleaner way to do it
6 replies
CC#
Created by Core on 11/19/2024 in #help
✅ How is JsonConverter(typeof(JsonStringEnumConverter<MyEnum>)) evaluated?
Thank you so much
10 replies
CC#
Created by Core on 11/19/2024 in #help
✅ How is JsonConverter(typeof(JsonStringEnumConverter<MyEnum>)) evaluated?
This guy serializes 😄
10 replies
CC#
Created by Core on 11/19/2024 in #help
✅ How is JsonConverter(typeof(JsonStringEnumConverter<MyEnum>)) evaluated?
This seemed to work
c.Serializer.Options.TypeInfoResolver =
JsonTypeInfoResolver.Combine(c.Serializer.Options.TypeInfoResolver, EnumJsonSerializer.Default);
c.Serializer.Options.TypeInfoResolver =
JsonTypeInfoResolver.Combine(c.Serializer.Options.TypeInfoResolver, EnumJsonSerializer.Default);
10 replies