Register an Type without interface in ServiceLocator

Topics: Issues / bugs, Questions
Mar 8, 2013 at 6:53 AM
In my Viewmodel i want to register an Type without an Interface in the Servicelocator.

In accordance with the documentation of catel

ServiceLocator.Default.RegisterType PleaseWaitService>();

disregarding of the missing brace, its not working.

ServiceLocator.RegisterType<PleaseWaitService>();

Error: Incorect number of parameters.
Developer
Mar 8, 2013 at 12:55 PM
The available option is:

ServiceLocator.RegisterType<PleaseWaitService, PleaseWaitService>();