Anu6is
Anu6is
CC#
Created by Dongle on 6/17/2024 in #help
Avoid reserializing entire JSON?
Imo the user should either use standard json format or you shouldn't present the data to them in json format at all (of course that depends on context and json might make sense. Supporting custom formatting still doesn't seem worth it)
21 replies
CC#
Created by ensman38 on 6/15/2024 in #help
βœ… How can I change this code
cyber security doesn't work? πŸ˜•
45 replies
CC#
Created by TrustyTea on 4/25/2024 in #help
Blazor Project Hierarchy
as long as you are using Microsoft Identity, you cannot have interactive components in your login pages. You can style the pages just like the rest of your app but the only option you have for interactivity would be using Edit Forms or javascript https://learn.microsoft.com/en-us/aspnet/core/blazor/components/render-modes?view=aspnetcore-8.0#area-folder-of-static-ssr-components Auto simply switches between server side rendering and client side rendering, your account pages will still use server side rendering
5 replies
CC#
Created by TrustyTea on 4/24/2024 in #help
Blazor Problems with Layouts
this isn't related to Layouts. It has to do with Blazor render modes. The account pages are Static Server Side Rendered pages... static meaning, non-interactive. That's why your dark mode toggle/button and app drawer don't work, because they require interactivity
3 replies
CC#
Created by Rhys on 4/22/2024 in #help
Discord.net help - Trying to access a users roles
gg
84 replies
CC#
Created by Rhys on 4/22/2024 in #help
Discord.net help - Trying to access a users roles
πŸšΆβ€β™‚οΈ
84 replies
CC#
Created by Rhys on 4/22/2024 in #help
Discord.net help - Trying to access a users roles
what does roles show
84 replies
CC#
Created by Rhys on 4/22/2024 in #help
Discord.net help - Trying to access a users roles
var roles = user.Roles.ToArray();
84 replies
CC#
Created by Rhys on 4/22/2024 in #help
Discord.net help - Trying to access a users roles
not the user.Roles.... the array
84 replies
CC#
Created by Rhys on 4/22/2024 in #help
Discord.net help - Trying to access a users roles
yeah, idk... this is weird. As far as I can see the code is correct
84 replies
CC#
Created by Rhys on 4/22/2024 in #help
Discord.net help - Trying to access a users roles
screenshot
84 replies
CC#
Created by Rhys on 4/22/2024 in #help
Discord.net help - Trying to access a users roles
if (user != null)
{
var roles = user.Roles.ToArray();
....
....
}
if (user != null)
{
var roles = user.Roles.ToArray();
....
....
}
if you add that before you logger line and put a break point on the logger. Does the array have anything?
84 replies
CC#
Created by Rhys on 4/22/2024 in #help
Discord.net help - Trying to access a users roles
that doesn't make sense though... if you have a collection with items, it should simply iterate through that collection
84 replies
CC#
Created by Rhys on 4/22/2024 in #help
Discord.net help - Trying to access a users roles
also are you actually using the debugger or just relying on the logging?
84 replies
CC#
Created by Rhys on 4/22/2024 in #help
Discord.net help - Trying to access a users roles
does it skip the foreach itself or just the if?
84 replies
CC#
Created by Rhys on 4/22/2024 in #help
Discord.net help - Trying to access a users roles
which check?
84 replies
CC#
Created by Rhys on 4/22/2024 in #help
Discord.net help - Trying to access a users roles
remove await
84 replies
CC#
Created by Rhys on 4/22/2024 in #help
Discord.net help - Trying to access a users roles
where?
84 replies
CC#
Created by Rhys on 4/22/2024 in #help
Discord.net help - Trying to access a users roles
why is it not just private bool IsUserInServerWithRole
84 replies
CC#
Created by Rhys on 4/22/2024 in #help
Discord.net help - Trying to access a users roles
this method private async Task<bool> IsUserInServerWithRole has async Task<bool> yet it does not do any async work
84 replies