public object CreateTestConfigurationRequestMessage(Guid correlationId, Guid requestorCorrelationId, IDictionary<string, string> appSettings, ProjectElement project)
		{
			var configuration = project.GetElementCollection<CommandLineElementCollection>(Settings.ElementCollectionSettingName);
			return new CommandLineConfigurationTestRequestMessage
			{
				CorrelationId = correlationId,
				RequestorCorrelationId = requestorCorrelationId,
				AppSettings = appSettings,
				ProjectName = project.Name,
				Configuration = configuration
			};
		}
Ejemplo n.º 2
0
        private static void AddBoxNetUploaderSetting(ProjectElement project)
        {
            var configurationProperty = project.GetConfigurationProperty(BoxNetUploaderConfiguration.Instance.ElementCollectionSettingName);
            var commandElementCollection = project.GetElementCollection<BoxNetUploaderElementCollection>(configurationProperty);

            var element = new BoxNetUploaderElement
            {
                Name = "BoxNetUploaderElement",
                OutPutPath = @"c:\",
            };

            commandElementCollection.Add(element);
        }
Ejemplo n.º 3
0
        private static void AddAudioConversionSetting(ProjectElement project)
        {
            var configurationProperty = project.GetConfigurationProperty(AudioConversionConfiguration.Instance.ElementCollectionSettingName);
            var commandElementCollection = project.GetElementCollection<AudioConversionElementCollection>(configurationProperty);

            var element = new AudioConversionElement
            {
                Name = "AudioConversionElement",
                OutPutPath = @"c:\",
            };

            commandElementCollection.Add(element);
        }
Ejemplo n.º 4
0
		private static void AddAntiVirusSetting(ProjectElement project)
		{
			var configurationProperty = project.GetConfigurationProperty(AntiVirusConfiguration.Instance.ElementCollectionSettingName);
			var commandElementCollection = project.GetElementCollection<AntiVirusElementCollection>(configurationProperty);

			var element = new AntiVirusElement
			{
				Name = "AntiVirusElement",
				OutPutPath = @"c:\",
				VirusScannerType = VirusScannerType.NotSpecified,
			};

			commandElementCollection.Add(element);
		}
    	/// <summary>
    	/// This is all the command settings that are related to the file match element.
    	/// </summary>
    	/// <param name="container">The container for all the plugins.</param>
    	/// <param name="project">The project to get all the command settings for.</param>
    	/// <returns>Dictionary of command type/command </returns>
    	private Dictionary<string, List<string>> GetCommandSettings(ExportProvider container, ProjectElement project)
		{
			var currentConfigurationElementCollections = container.GetExportedValues<CurrentConfigurationElementCollection>()
				.Where(x => !_excludedElements.Contains(x.Setting.ElementSettingName));

			var commandSettings = new Dictionary<string, List<string>>();

			foreach (var configurationElementCollection in currentConfigurationElementCollections)
			{
				var collectionSettingName = configurationElementCollection.Setting.ElementCollectionSettingName;
				var configurationProperty = project.GetConfigurationProperty(collectionSettingName);
				var commandElementCollection = project.GetElementCollection<CurrentConfigurationElementCollection>(configurationProperty);
				var conversionType = commandElementCollection.Setting.ConversionType;
				var commandSettingKeys = new List<string>();
				for (var i = 0; i < commandElementCollection.Count; i++)
				{
					var commandElement = commandElementCollection[i];
					commandSettingKeys.Add(commandElement.Name);
				}
				commandSettings.Add(conversionType, commandSettingKeys);
			}

			return commandSettings;
		}
Ejemplo n.º 6
0
        private static void AddCommandLineSetting(ProjectElement project)
        {
            var configurationProperty = project.GetConfigurationProperty(CommandLineConfiguration.Instance.ElementCollectionSettingName);
            var commandElementCollection = project.GetElementCollection<CommandLineElementCollection>(configurationProperty);

            var element = new CommandLineElement
            {
                Name = "CommandLineElement",
                OutPutPath = @"c:\",
            };

            commandElementCollection.Add(element);
        }
Ejemplo n.º 7
0
        private static void AddVideoThumbnailerSetting(ProjectElement project)
        {
            var configurationProperty = project.GetConfigurationProperty(VideoThumbnailerConfiguration.Instance.ElementCollectionSettingName);
            var commandElementCollection = project.GetElementCollection<VideoThumbnailerElementCollection>(configurationProperty);

            var element = new VideoThumbnailerElement
            {
                Name = "VideoThumbnailerElement",
                OutPutPath = @"c:\",
            };

            commandElementCollection.Add(element);
        }