Custom Modules and Setup #11120
-
I have a special requirement for Features etc. so I'm starting from scratch building my own modules. I'm at the early stages and I noticed that the Setup Service hardcodes some values into the database and I'm wondering why it's doing this? My modules are not named the same and I'll not be using these modules. What impact will this have on my application? The following code is in the SetupService: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
I guess I'll have to make my own Setup service. The current one uses these hardcoded values to register the services a little later and my own recipe service is not used. It errors out here: because it's expecting the OrchardCore.Recipe service which it auto registered. |
Beta Was this translation helpful? Give feedback.
-
Setup service is used to initialize the tenant. And to initialize and bootstrap a new tenant on first request orchard core uses special mechanism that depends on few modules that needs to be enabled to execute setup recipes that's you hardcoded. However, once the tenant is initialized it will only enable and/or disable modules that you have defined in your setup recipe or in tenant profile. Being said - you can use same setup screen However you can define your own setup recipe in your module according to your needs |
Beta Was this translation helpful? Give feedback.
Setup service is used to initialize the tenant. And to initialize and bootstrap a new tenant on first request orchard core uses special mechanism that depends on few modules that needs to be enabled to execute setup recipes that's you hardcoded.
However, once the tenant is initialized it will only enable and/or disable modules that you have defined in your setup recipe or in tenant profile.
Being said - you can use same setup screen However you can define your own setup recipe in your module according to your needs