コード例 #1
0
 public ConnectionWriter(ConnectionStream stream, int BDataBlocks, int BDataLenght) {
     if (stream == null) throw new ArgumentNullException("stream");
     if (BDataBlocks <= 0) throw new ArgumentException("BDataBlocks");
     if (BDataLenght <= 0) throw new ArgumentException("BDataLenght");
     _outStream = stream;
     _BDataBlocks = BDataBlocks;
     _BDataLenght = BDataLenght;
     _syncObject = new Semaphore(_BDataBlocks, _BDataBlocks);
 }
コード例 #2
0
 public ConnectionWriter(ConnectionStream stream, int BDataBlocks, int BDataLenght)
 {
     if (stream == null)
     {
         throw new ArgumentNullException("stream");
     }
     if (BDataBlocks <= 0)
     {
         throw new ArgumentException("BDataBlocks");
     }
     if (BDataLenght <= 0)
     {
         throw new ArgumentException("BDataLenght");
     }
     _outStream   = stream;
     _BDataBlocks = BDataBlocks;
     _BDataLenght = BDataLenght;
     _syncObject  = new Semaphore(_BDataBlocks, _BDataBlocks);
 }
コード例 #3
0
 public ConnectionWriter(ConnectionStream stream)
     : this(stream, stream.Connection.Application.BDataBlocks,
            stream.Connection.Application.BDataLenght)
 {
 }
コード例 #4
0
        public ConnectionWriter(ConnectionStream stream)
            : this(stream, stream.Connection.Application.BDataBlocks,
            stream.Connection.Application.BDataLenght) {

        }