コード例 #1
0
 private static Stream GetUnixSocketStream(MySqlConnectionStringBuilder settings)
 {
     if (Platform.IsWindows())
     {
         throw new InvalidOperationException(Resources.NoUnixSocketsOnWindows);
     }
     return(MyNetworkStream.CreateStream(settings, true));
 }
コード例 #2
0
        private static Stream GetTcpStream(MySqlConnectionStringBuilder settings)
        {
            MyNetworkStream s = MyNetworkStream.CreateStream(settings, false);

            return(s);
        }
コード例 #3
0
        private static async Task <Stream> GetTcpStream(MySqlConnectionStringBuilder settings)
        {
            var s = await MyNetworkStream.CreateStream(settings, false);

            return(s);
        }