After I upgraded Castle to 3.2.1 I cant seem to find the right replacement for FirstNonGenericCoreInterface

My codes

container.Register(
    AllTypes
        .FromAssemblyNamed("MySolution.Tasks")
        .InNamespace("MySolution.Tasks")
        .WithService.FirstNonGenericCoreInterface("MySolution.Domain"));

That method is not obsolete and I cannot find what method to use

enter image description here

Does anyone know what should I use instead?

有帮助吗?

解决方案

If I am not mistaken, FirstNonGenericCoreInterface is a Sharp Architecture extension method.

WithService.DefaultInterfaces() should do what you need if your implementation class names match the interfaces. More info is available on the Castle Windsor wiki http://docs.castleproject.org/Default.aspx?Page=Registering-components-by-conventions&NS=Windsor&AspxAutoDetectCookieSupport=1

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top