internal void AddNotificationThread() { _notificationThreadStopCount = 0; NpgsqlContextHolder contextHolder = new NpgsqlContextHolder(this, CurrentState); _notificationThread = new Thread(new ThreadStart(contextHolder.ProcessServerMessages)); _notificationThread.Start(); }
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(); }
internal void AddNotificationThread() { _notificationThreadStopCount = 0; _notificationAutoResetEvent.Set(); NpgsqlContextHolder contextHolder = new NpgsqlContextHolder(this, CurrentState); _notificationThread = new Thread(new ThreadStart(contextHolder.ProcessServerMessages)); _notificationThread.Start(); }
internal void AddNotificationThread() { _notificationThreadStopCount = 0; var contextHolder = new NpgsqlContextHolder(this); _notificationThread = new Thread(contextHolder.ProcessServerMessages); _notificationThread.Start(); }