Table of Contents

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

Use GetService<T>() to get this service.

⚡ The official API docs.

Discover More in the Razor Tutorials

We have an rich series of Razor tutorials. You should really check them out 👍.


Two important services that require you to use GetService are

Also Read

  • TODO: These docs are incomplete, as the feature is still new.

History

  1. Introduced in 2sxc 11.11