Think you’re right ancient coder that’s gonna be the way to go you need some kind of finite state machine to track that multi-step process you’re right it is hard.
To design good-looking emotes the size constraint is shockingly hard.
It is it’s really hard to that’s why they looked so bad for so long a Thiago so let’s okay so you’re right we need some sort of a state machine make the string it was pre-built with variables in the state machine determines what gets plugged in I worry about that I don’t want to make connection string something that we have to manage the format of let let the administrator let them figure it out the person who’s setting this.
Up but where we store the configuration for that I think is okay so what we.
Started here under did we do it in the index page yeah all right so we tested writing the file to disk for our app.
Settings we we did this about a week ago so we have app settings app dot JSON that’ll have some initial configuration in it and the things that we’re gonna write into it I think are going to become write our standard application configuration so we’ll end up putting.
That into a real object somewhere and then we’ll be able to just serialize and deserialize that object back and forth so that we’re not actually writing writing code back and forth right we’ll just create a configuration object load the configuration into it and write that to disk I think that’ll be a better way to go now where did I put my configuration that.
Sounds weird configuration configuration no I thought I had yeah configuration settings there we go so app settings and it says the URL there’s the connection.
Strings section which is over here core wiki identity context connection right and then the security settings discuss the comments engine so we’ve already broken out configuration into a bunch of different things here and these are all being derived from the app settings that we get by default right connection strings we’ve got these two different and that’s not even right we have the ability to specify a provider here as well.
Yeah there it is data provider so we need a way to manage this configuration to load this configuration as.
We’re building it and then we’re gonna save it into that app JSON and then it should be loaded and parsed and managed by the application not necessarily by the website as we’re going through and using this does that make sense so for this state machine that you’re talking about if we start with a singleton for that configuration so that as you’re working and going from page to page it’ll be passed through.
To us right as we as we save this date of it yeah okay all right well I’m glad you approve so let’s go back over here so areas first start so if we add let’s add a new class here add a new file right what can I do I want to I want to generate a.
New file I’m gonna I want to add class right can I is there an add class no I thought that was like a dotnet snippet to add classes I’ll have to build them by hand unless there’s an extension does somebody have an extension for add class right those type of templates right like c-sharp class templates.