Register an Type without interface in ServiceLocator

Topics: Issues / bugs, Questions
Mar 8, 2013 at 7: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.


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

ServiceLocator.RegisterType<PleaseWaitService, PleaseWaitService>();