Register Service with default paremter in ctor

Topics: Questions
Sep 19, 2014 at 8:27 AM
I try to register a Service wit a default parameter in ctor
ServiceLocator.Default.RegisterType<MyService, MyService>();

public MyService(string name = "MyService");
{
   ...
}
If I try resolve this service I get an exception: Service is mot registered.
How can I register a Service with default parmeter?
Coordinator
Sep 19, 2014 at 12:45 PM
You can't