Esempio n. 1
0
        private List <PostingThread> ConstructPostingThreads()
        {
            List <PostingThread> postingThreads = new List <PostingThread>();

            for (int i = 0; i < configuration.MaxConnectionCount; i++)
            {
                var postingThread = new PostingThread(configuration, folderConfiguration, connectionInfo, MessagesToPost);
                postingThread.MessagePosted += PostingThread_MessagePosted;
                postingThreads.Add(postingThread);
            }

            return(postingThreads);
        }
Esempio n. 2
0
        private List<PostingThread> ConstructPostingThreads()
        {
            List<PostingThread> postingThreads = new List<PostingThread>();
            for (int i = 0; i < configuration.MaxConnectionCount; i++)
            {
                var postingThread = new PostingThread(configuration, folderConfiguration, connectionInfo, MessagesToPost);
                postingThread.MessagePosted += postingThread_MessagePosted;
                postingThreads.Add(postingThread);
            }

            return postingThreads;
        }