Register Service with default paremter in ctor

Topics: Questions
Sep 19, 2014 at 9: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?
Sep 19, 2014 at 1:45 PM
You can't