Renn
Renn
CC#
Created by Tiltyboi on 11/27/2023 in #help
C# IConfiguration not loading appsettings
pretty sure IOptions<T> can come up null if you have no configuration for that class. I mean, the actual variable won't be null, but .Value will be null
178 replies
CC#
Created by Tiltyboi on 11/27/2023 in #help
C# IConfiguration not loading appsettings
yeah OK that looks right. And options is null is what the problem is?
178 replies
CC#
Created by Tiltyboi on 11/27/2023 in #help
C# IConfiguration not loading appsettings
are you using IOptions<DiscordKeyOptions> in your consumer classes?
178 replies
CC#
Created by Tiltyboi on 11/27/2023 in #help
C# IConfiguration not loading appsettings
how are you consuming your configuration in services? I see you're using services.Configure<>()
178 replies
CC#
Created by Tiltyboi on 11/27/2023 in #help
C# IConfiguration not loading appsettings
and what do you mean by "it's not found"?
178 replies
CC#
Created by Tiltyboi on 11/27/2023 in #help
C# IConfiguration not loading appsettings
how are you trying to use it?
178 replies
CC#
Created by hmm.. on 12/21/2022 in #help
❔ Synchronous function result problem
You also really shouldn't be using nested lists for this. This is a perfect candidate for a matrix (something like var walls = new bool[maxX, maxY] and the same for cells)
16 replies
CC#
Created by hmm.. on 12/21/2022 in #help
❔ Synchronous function result problem
yeah this is definitely a candidate for a debugger. Set a breakpoint at your first for loop and see what rbottom is. It's based on a parameter and then you do some math on it so you should confirm that it's actually going to loop the requisite amount
16 replies