public FormMain() { InitializeComponent(); // Create our logger _logger = new ClassLogger("Notifications.log"); _logger.LogAdded += new ClassLogger.LoggerEventHandler(_logger_LogAdded); _traceListener = new ClassTraceListener("Trace.log"); // Increase default connection limit - this is CRUCIAL when supporting multiple subscriptions ServicePointManager.DefaultConnectionLimit = 255; _logger.Log("Default connection limit increased to 255"); comboBoxSubscribeTo.SelectedIndex = 5; // Set to Inbox first of all checkedListBoxEvents.SetItemChecked(0, true); buttonUnsubscribe.Enabled = false; _connections = new Dictionary <string, StreamingSubscriptionConnection>(); ReadMailboxes(); _mailboxes = new Mailboxes(null, _logger, _traceListener); comboBoxExchangeVersion.SelectedIndex = 0; //comboBoxExchangeVersion.Enabled = false; }
public FormMain() { InitializeComponent(); // Create our logger _logger = new ClassLogger("Notifications.log"); _logger.LogAdded += new ClassLogger.LoggerEventHandler(_logger_LogAdded); _traceListener = new ClassTraceListener("Trace.log"); // Increase default connection limit - this is CRUCIAL when supporting multiple subscriptions, as otherwise only 2 connections will work ServicePointManager.DefaultConnectionLimit = 255; _logger.Log("Default connection limit increased to 255"); comboBoxSubscribeTo.SelectedIndex = 0; // Select All Folders buttonUnsubscribe.Enabled = false; checkBoxSelectAll.CheckState = CheckState.Checked; checkBoxSelectAll_CheckedChanged(this, null); _connections = new Dictionary <string, StreamingSubscriptionConnection>(); ReadMailboxes(); _mailboxes = new Mailboxes(_logger, _traceListener); UpdateUriUI(); UpdateAuthUI(); }