/// <summary> /// Add Modulight module services. /// </summary> /// <param name="services"></param> /// <param name="builder"></param> /// <param name="builderServices">Service collection for builder.</param> /// <returns></returns> public static IServiceCollection AddModules(this IServiceCollection services, IModuleHostBuilder builder, IServiceCollection?builderServices = null) { builder.Build(services, builderServices); return(services); }