Exemple #1
0
        /// <summary>
        /// Initializes a new instance of the Swiffotron class.
        /// </summary>
        /// <param name="configStream">An open stream to the config XML data, or null to
        /// use default configuration.</param>
        public Swiffotron(Stream configStream)
        {
            if (configStream == null)
            {
                configStream = Assembly
                        .GetExecutingAssembly()
                        .GetManifestResourceStream(@"SWFProcessing.Swiffotron.res.default-config.xml");
            }

            this.conf = new Configuration(configStream);

            this.Xml = new XMLHelper();

            this.stores = this.conf.Stores;
            this.caches = this.conf.Caches;
        }
Exemple #2
0
 public Stores(Configuration conf)
 {
     this.conf = conf;
     this.stores = new Dictionary<string, ISwiffotronStore>();
 }