mixels
mixels
CC#
Created by mixels on 10/2/2024 in #help
✅ Why is this try/catch block preventing lines after it from firing when an exception is caught?
Yeah that's true, but I don't know why that would stop the logger line that's outside the foreach block from executing. Do you know why that logger line doesn't execute?
7 replies
CC#
Created by mixels on 9/18/2024 in #help
Accessing configuration inside CreateDefaultBuilder chain
O I think this did put me on the right track though, it seems the way you access arrays is just... strange.
c#
IConfigurationSection myArraySection = _config.GetSection("MyArray");
var itemArray = myArraySection.AsEnumerable();
c#
IConfigurationSection myArraySection = _config.GetSection("MyArray");
var itemArray = myArraySection.AsEnumerable();
8 replies
CC#
Created by mixels on 9/18/2024 in #help
Accessing configuration inside CreateDefaultBuilder chain
Ok I don't think that's the problem. I mean it's a problem, thanks for pointing it out heh, but there must be something else going on here too. I now see the value during debug is {[WebService:BindUrls:0, http://0.0.0.0:8180]} which is right but I'm still getting null in Program.cs. :headdesk:
8 replies
CC#
Created by mixels on 9/18/2024 in #help
Accessing configuration inside CreateDefaultBuilder chain
:facepalm: Yep, that's definitely it, thanks, I've been simultaneously trying to learn using json config and better understanding IoC outside thedefault ASP template and I swear I had this as an array at one point lol. Thank you. 🙂
8 replies
BBattleMetrics
Created by Alta on 11/29/2023 in #support-forum
ARK ASA Use broadcast with RCON
Broadcast wasn't working over RCON for the longest time. It looks like Wildcard fixed it though and the command is now working over RCON. Try again.
6 replies
CC#
Created by mixels on 7/5/2023 in #help
❔ Specify timezone of DateTime converted from localized timestamp without changing the time?
Ok thanks, that does the trick. Appreciate the help!
10 replies
CC#
Created by mixels on 6/5/2023 in #help
Properties of IConfigurationSection.Get are null?
Thanks that did the trick. Got so used to Newtonsoft.Json that I never even suspected it required properties.
7 replies
CC#
Created by mixels on 6/5/2023 in #help
Properties of IConfigurationSection.Get are null?
Ok I will try that, thanks for the suggestion
7 replies
CC#
Created by mixels on 6/5/2023 in #help
Properties of IConfigurationSection.Get are null?
Configuration is the root though isn't it?
7 replies
CC#
Created by mixels on 5/28/2023 in #help
❔ Create console app with runtime option to run headless or with console in .NET 6 or later?
it's a bot that maintains a websocket connection with remote host and has a web api
14 replies
CC#
Created by mixels on 5/28/2023 in #help
❔ Create console app with runtime option to run headless or with console in .NET 6 or later?
command line, either env variable or arg
14 replies
CC#
Created by mixels on 5/28/2023 in #help
❔ Create console app with runtime option to run headless or with console in .NET 6 or later?
As far as I know, Exe always shows and WinExe always hides
14 replies
CC#
Created by mixels on 5/28/2023 in #help
❔ Create console app with runtime option to run headless or with console in .NET 6 or later?
Yeah but I don't want to use a property of the project. I want to give a runtime option to users of the app.
14 replies