/// <summary> /// Fill the ConfigurationFile of AppDomain property if a ConnectionFile Property is specified /// </summary> /// <param name="variableDispenser">The variable dispenser.</param> /// <param name="connections">The connections.</param> /// <param name="appDomainSetup">The app domain setup.</param> private void GetConfigurationFile(VariableDispenser variableDispenser, Connections connections, AppDomainSetup appDomainSetup) { if (ConfigurationType != SSISExecuteAssemblyTask100.ConfigurationType.NO_CONFIGURATION) { string configurationFile = string.Empty; if (ConfigurationType == SSISExecuteAssemblyTask100.ConfigurationType.FILE_CONNECTOR) { configurationFile = connections[ConfigurationFile].ConnectionString; } if (ConfigurationType == SSISExecuteAssemblyTask100.ConfigurationType.TASK_VARIABLE) { configurationFile = (ConfigurationFile.Contains('@')) ? EvaluateExpression(ConfigurationFile, variableDispenser).ToString() : _vars[ConfigurationFile].Value.ToString(); } appDomainSetup.ConfigurationFile = configurationFile; } }