private void Builder_Building(object sender, AppContainerBuilderBuildEventArgs e)
        {
            var builder = (AutofacContainerBuilder)sender;

            builder.RemoveComponentByComponentType(typeof(ServiceRegistedInTestContainerBuilder));
        }
        private void ConfigBuilder_ConfigObjectRegisted(object sender, AppContainerBuilderBuildEventArgs e)
        {
            AutofacContainerBuilder builder = e.AppSetup.GetAppContainerBuilder <AutofacContainerBuilder>();

            builder.RemoveComponentByComponentType(typeof(Test2Config));
        }