Ejemplo n.º 1
0
        /// <summary>
        /// Sets up the Dom module.
        /// </summary>
        public static void Start_Protocols(StartInfo info)
        {
            // Find file protocols:
            info.Scanner.FindAllSubTypes(typeof(FileProtocol), delegate(Type type){
                // Add it:
                FileProtocols.Add(type);
            });

            // (That's so it'll "scan" any added assemblies for custom protocols).
        }
Ejemplo n.º 2
0
 /// <summary>Gets the file protocol for this location. Default is resources://.</summary>
 public FileProtocol GetProtocol()
 {
     return(FileProtocols.Get(Protocol));
 }