/// <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; }