Exemplo n.º 1
0
        public TResult Build(BuildContext context)
        {
            environmentSetupContext   = context.EnvironmentSetupContext;
            configurationSetupContext = context.ConfigurationSetupContext;

            builderCustomization.Customize(builder);

            return(builder.Build(context));
        }
Exemplo n.º 2
0
        public TBuilder GetIntermediateBuilder(BuildContext context)
        {
            try
            {
                environmentSetupContext   = context.EnvironmentSetupContext;
                configurationSetupContext = context.ConfigurationSetupContext;

                return(builderCustomization.Customize(builder));
            }
            finally
            {
                environmentSetupContext   = null;
                configurationSetupContext = null;
            }
        }