/// <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). }
/// <summary>Gets the file protocol for this location. Default is resources://.</summary> public FileProtocol GetProtocol() { return(FileProtocols.Get(Protocol)); }