Generic session for TDS Server
Наследование: ITDSServerSession
Пример #1
0
        /// <summary>
        /// Create a new session on the server
        /// </summary>
        /// <returns>A new instance of the session</returns>
        public virtual ITDSServerSession OpenSession()
        {
            // Atomically increment the session counter
            Interlocked.Increment(ref _sessionCount);

            // Create a new session
            GenericTDSServerSession session = new GenericTDSServerSession(this, (uint)_sessionCount);

            // Use configured encryption certificate
            session.EncryptionCertificate = Arguments.EncryptionCertificate;

            return(session);
        }
Пример #2
0
        /// <summary>
        /// Create a new session on the server
        /// </summary>
        /// <returns>A new instance of the session</returns>
        public virtual ITDSServerSession OpenSession()
        {
            // Atomically increment the session counter
            Interlocked.Increment(ref _sessionCount);

            // Create a new session
            GenericTDSServerSession session = new GenericTDSServerSession(this, (uint)_sessionCount);

            // Use configured encryption certificate
            session.EncryptionCertificate = Arguments.EncryptionCertificate;

            return session;
        }