Example #1
0
        private static void ConfigureAutofac(ContainerBuilder builder)
        {
            var assemblies             = new AssembliesFinder().GetAllReferencedAssemblies(Assembly.GetEntryAssembly(), nameof(MinecraftServerStatus));
            var solutionAutofacBuilder = new AutofacBuilder(builder).BuildBasicTypes(_configuration);

            assemblies.ForEach(x =>
            {
                solutionAutofacBuilder
                .BuildAdditionalControllers(x)
                .BuildAdditionalServices(x);
            });
        }