Replies: 1 comment 1 reply
-
From your startup.cs class of your module you can unregister a service simply.
Though you must make sure that your module is registered after the Templates and AdminTemplates ones. If you look at the StartupBase class you will see ConfigureOrder which can be set like this :
The higher the value ; the later it gets registered. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am working on creating a module that will replace the exiting
Templates
andAdminTemplate
feature. I can not replace TemplateManager inservices
using Dependency as it's not interface based. So Currently I have to manually disableTemplates
andAdminTemplate
before enabling my module.Is it possible to achieve in C# code that when user enables my module, it should disable other modules like
Templates
andAdminTemplate
?Thank You
Beta Was this translation helpful? Give feedback.
All reactions