Example #1
0
        public TdsConnection(ITdsStream tdsStream, SqlConnectionString dbConnectionOptions)
        {
            _tdsStream = tdsStream;
            TdsPackage = new TdsPackage(_tdsStream);
            var loginProcessor = new LoginProcessor(TdsPackage, dbConnectionOptions);

            StreamParser = new TdsStreamParser(TdsPackage, loginProcessor);
            StreamParser.ParseInput();
            _messageCountAfterLogin = SqlMessages.Count;
        }
Example #2
0
 public TdsStreamParser(TdsPackage tdsPackage, LoginProcessor loginProcessor)
 {
     _tdsPackage     = tdsPackage;
     _loginProcessor = loginProcessor;
 }