Exemplo n.º 1
0
        protected override void Prepare(IOutputAppender outputAppender)
        {
            if (AffiliateApplicationName.IsNullOrEmpty())
            {
                throw new ArgumentNullException(nameof(AffiliateApplicationName));
            }
            if (EnvironmentSettingsAssemblyFilePath.IsNullOrEmpty())
            {
                throw new ArgumentNullException(nameof(EnvironmentSettingsAssemblyFilePath));
            }
            if (TargetEnvironment.IsNullOrEmpty())
            {
                throw new ArgumentNullException(nameof(TargetEnvironment));
            }

            DeploymentContext.TargetEnvironment = TargetEnvironment;
            if (!EnvironmentSettingOverridesTypeName.IsNullOrEmpty())
            {
                DeploymentContext.EnvironmentSettingOverridesType = ResolveEnvironmentSettingOverridesType(outputAppender);
            }
        }