K
K
kid-programmer2014-02-11 08:08:14
C++ / C#
kid-programmer, 2014-02-11 08:08:14

How to rewrite registration from Autofac to Castel.Windsor?

Hello, please help me redo the following:
There are 2 registrations in Autofac

builder.RegisterAssemblyTypes(typeof (IMediator).Assembly, GetType().Assembly)
                .AsClosedTypesOf(typeof (IQueryHandler<,>))
                .AsImplementedInterfaces();

builder.RegisterType<Mediator>().AsImplementedInterfaces().InstancePerLifetimeScope();

How would this look like in Castel.Windsor?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question