Recommended For You

About the Author: Nick Chapsas

9 Comments

  1. Why Not ?
    services.AddAutoMapper(AppDomain.CurrentDomain.GetAssemblies());

    I don't like creating any empty Interface or something unless I am planning to use that after I only create an empty interface to fill it later to stick my infrastructure

  2. Why bother with a special type if Program suffices? How would you know if the library accepts any type or if it needs the entry point specifically?

  3. For such a usecase, Why we have to create a useless type and get assembly from it. I mean why can't we have easy things like typeof() or nameof() similarly assembly(this) or assembly("MyApi.Application") etc..

Comments are closed.