Base solution for your next web application
Open Closed

How to register multiple interfaces #7798


User avatar
0
enerjisauretim created

How to register a concrete class with multiple public interfaces in the IocManager


1 Answer(s)
  • User Avatar
    1
    maliming created
    Support Team

    try

    IocManager.IocContainer.Register(
                    Component.For<IRequestHandler<xxx>, IRequestHandler<yyy>>()
                        .ImplementedBy(typeof(CreateDailyInputCommandHandler))
                        .LifeStyle.Transient);