/// <summary>
 /// Initializes a new instance of the <see cref="TDSCommunicator" /> class.
 /// </summary>
 /// <param name="stream">NetworkStream used for communication</param>
 /// <param name="packetSize">TDS packet size</param>
 public TDSCommunicator(Stream stream, ushort packetSize, Boolean TrustServerCertificate)
 {
     this.packetSize     = packetSize;
     this.innerTdsStream = new TDSStream(stream, new TimeSpan(0, 0, 30), packetSize);
     this.innerStream    = this.innerTdsStream;
     TDSCommunicator.TrustServerCertificate = TrustServerCertificate;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="TDSCommunicator" /> class.
 /// </summary>
 /// <param name="stream">NetworkStream used for communication</param>
 /// <param name="packetSize">TDS packet size</param>
 public TDSCommunicator(Stream stream, ushort packetSize)
 {
     this.packetSize     = packetSize;
     this.innerTdsStream = new TDSStream(stream, new TimeSpan(0, 0, 30), packetSize);
     this.innerStream    = this.innerTdsStream;
 }
Esempio n. 3
0
 public TDSCommunicator(NetworkStream stream, ushort packetSize)
 {
     PacketSize     = packetSize;
     InnerTdsStream = new TDSStream(stream, new TimeSpan(0, 0, 30), packetSize);
     InnerStream    = InnerTdsStream;
 }