Exemplo n.º 1
0
        public MySqlStream(Stream baseStream, Encoding encoding, bool compress)
          : this(encoding)
        {
            timedStream = new TimedStream(baseStream);
            Stream stream;
#if NET451
            if (compress)
                stream = new CompressedStream(timedStream);
            else
                stream = timedStream;
#else
            stream = timedStream;
#endif
            inStream = new BufferedStream(stream);
            outStream = stream;
        }
Exemplo n.º 2
0
        public MySqlStream(Stream baseStream, Encoding encoding, bool compress)
            : this(encoding)
        {
            timedStream = new TimedStream(baseStream);
            Stream stream;
#if NET46
            if (compress)
            {
                stream = new CompressedStream(timedStream);
            }
            else
            {
                stream = timedStream;
            }
#else
            stream = timedStream;
#endif
            inStream  = new BufferedStream(stream);
            outStream = stream;
        }