Add additional URI schemes (WIP) (#43375)
authorPatrick Westerhoff <PatrickWesterhoff@gmail.com>
Sat, 17 Oct 2020 02:55:54 +0000 (04:55 +0200)
committerGitHub <noreply@github.com>
Sat, 17 Oct 2020 02:55:54 +0000 (22:55 -0400)
src/libraries/System.Private.Uri/src/System/Uri.cs
src/libraries/System.Runtime/ref/System.Runtime.cs

index f804daf..a8b0e8d 100644 (file)
@@ -18,14 +18,18 @@ namespace System
     {
         public static readonly string UriSchemeFile = UriParser.FileUri.SchemeName;
         public static readonly string UriSchemeFtp = UriParser.FtpUri.SchemeName;
+        public static readonly string UriSchemeSftp = "sftp";
+        public static readonly string UriSchemeFtps = "ftps";
         public static readonly string UriSchemeGopher = UriParser.GopherUri.SchemeName;
         public static readonly string UriSchemeHttp = UriParser.HttpUri.SchemeName;
         public static readonly string UriSchemeHttps = UriParser.HttpsUri.SchemeName;
-        internal static readonly string UriSchemeWs = UriParser.WsUri.SchemeName;
-        internal static readonly string UriSchemeWss = UriParser.WssUri.SchemeName;
+        public static readonly string UriSchemeWs = UriParser.WsUri.SchemeName;
+        public static readonly string UriSchemeWss = UriParser.WssUri.SchemeName;
         public static readonly string UriSchemeMailto = UriParser.MailToUri.SchemeName;
         public static readonly string UriSchemeNews = UriParser.NewsUri.SchemeName;
         public static readonly string UriSchemeNntp = UriParser.NntpUri.SchemeName;
+        public static readonly string UriSchemeSsh = "ssh";
+        public static readonly string UriSchemeTelnet = UriParser.TelnetUri.SchemeName;
         public static readonly string UriSchemeNetTcp = UriParser.NetTcpUri.SchemeName;
         public static readonly string UriSchemeNetPipe = UriParser.NetPipeUri.SchemeName;
         public static readonly string SchemeDelimiter = "://";
index e74776a..2e68691 100644 (file)
@@ -4629,6 +4629,7 @@ namespace System
         public static readonly string SchemeDelimiter;
         public static readonly string UriSchemeFile;
         public static readonly string UriSchemeFtp;
+        public static readonly string UriSchemeFtps;
         public static readonly string UriSchemeGopher;
         public static readonly string UriSchemeHttp;
         public static readonly string UriSchemeHttps;
@@ -4637,6 +4638,11 @@ namespace System
         public static readonly string UriSchemeNetTcp;
         public static readonly string UriSchemeNews;
         public static readonly string UriSchemeNntp;
+        public static readonly string UriSchemeSftp;
+        public static readonly string UriSchemeSsh;
+        public static readonly string UriSchemeTelnet;
+        public static readonly string UriSchemeWs;
+        public static readonly string UriSchemeWss;
         protected Uri(System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext) { }
         public Uri(string uriString) { }
         [System.ObsoleteAttribute("The constructor has been deprecated. Please use new Uri(string). The dontEscape parameter is deprecated and is always false. https://go.microsoft.com/fwlink/?linkid=14202")]