GetService<T>() Command new in v11.11
If you want to do advanced stuff, you will want to ask for other global Services to help your code. 2sxc uses Depedency Injection to do this.
👉 Read about Dependency Injection in 2sxc
GetService<T>() to get this service.
⚡ The official API docs.
Discover More in the Razor TutorialsWe have an rich series of Razor tutorials. You should really check them out 👍.
Two important services that require you to use GetService are
- TODO: These docs are incomplete, as the feature is still new.
- Introduced in 2sxc 11.11