internal void AddNotificationThread()
        {
            _notificationThreadStopCount = 0;
            _notificationAutoResetEvent.Set();

            NpgsqlContextHolder contextHolder = new NpgsqlContextHolder(this, CurrentState);

            _notificationThread = new Thread(new ThreadStart(contextHolder.ProcessServerMessages));

            _notificationThread.Start();
        }
Beispiel #2
0
 internal void AddNotificationThread()
 {
     _notificationThreadStopCount = 0;
     var contextHolder = new NpgsqlContextHolder(this);
     _notificationThread = new Thread(contextHolder.ProcessServerMessages);
     _notificationThread.Start();
 }