private static Stream GetUnixSocketStream(MySqlConnectionStringBuilder settings) { if (Platform.IsWindows()) { throw new InvalidOperationException(Resources.NoUnixSocketsOnWindows); } return(MyNetworkStream.CreateStream(settings, true)); }
private static Stream GetTcpStream(MySqlConnectionStringBuilder settings) { MyNetworkStream s = MyNetworkStream.CreateStream(settings, false); return(s); }
private static async Task <Stream> GetTcpStream(MySqlConnectionStringBuilder settings) { var s = await MyNetworkStream.CreateStream(settings, false); return(s); }