コード例 #1
0
        /// <summary>
        /// Static construct.  Builds the default <see cref="MediaFileFactory"/>.
        /// </summary>
        static MediaFileFactory()
        {
            var compositeFactory = new CompositeMediaFileFactory();

            foreach (var factory in ConfigurationSection.GetInstance().MediaFileFactories)
            {
                compositeFactory.ComponentFactories.Add(Activator.CreateInstance(factory.Type));
            }

            compositeMediaFileFactory = compositeFactory;
        }
コード例 #2
0
		/// <summary>
		/// Static construct.  Builds the default <see cref="MediaFileFactory"/>.
		/// </summary>
		static MediaFileFactory()
		{
			var compositeFactory = new CompositeMediaFileFactory();

			foreach (var factory in ConfigurationSection.GetInstance().MediaFileFactories)
			{
				compositeFactory.ComponentFactories.Add(Activator.CreateInstance(factory.Type));
			}

			compositeMediaFileFactory = compositeFactory;
		}