Example #1
0
        internal void AddNotificationThread()
        {
            _notificationThreadStopCount = 0;

            NpgsqlContextHolder contextHolder = new NpgsqlContextHolder(this, CurrentState);

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

            _notificationThread.Start();
        }
Example #2
0
        internal void AddNotificationThread()
        {
            _notificationThreadStopCount = 0;
            _notificationAutoResetEvent.Set();
            _notificationToken = new CancellationTokenSource();

            NpgsqlContextHolder contextHolder = new NpgsqlContextHolder(this, CurrentState, _notificationToken.Token);

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

            _notificationThread.Start();
        }
Example #3
0
        internal void AddNotificationThread()
        {
            _notificationThreadStopCount = 0;
            _notificationAutoResetEvent.Set();

            NpgsqlContextHolder contextHolder = new NpgsqlContextHolder(this, CurrentState);

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

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