Exemplo n.º 1
0
 public PostingThread(UsenetPosterConfig configuration, NewsHostConnectionInfo connectionInfo, 
     Queue<nntpMessage> messageQueue)
 {
     _configuration = configuration;
     _connectionInfo = connectionInfo;
     _messageQueue = messageQueue;
     MyTask = new Task(PostingTask, TaskCreationOptions.LongRunning);
 }
Exemplo n.º 2
0
 public PostingThread(Settings configuration, WatchFolderSettings folderConfiguration, NewsHostConnectionInfo connectionInfo, 
     Queue<nntpMessage> messageQueue)
 {
     _configuration = configuration;
     _folderConfiguration = folderConfiguration;
     _connectionInfo = connectionInfo;
     _messageQueue = messageQueue;
     MyTask = new Task(PostingTask, TaskCreationOptions.LongRunning);
 }
Exemplo n.º 3
0
        public nntpMessagePoster(UsenetPosterConfig configuration)
        {
            this.configuration = configuration;
            connectionInfo = new NewsHostConnectionInfo()
            {
                Address = configuration.NewsGroupAddress,
                Port = configuration.NewsGroupPort,
                UseSsl = configuration.NewsGroupUseSsl,
                Username = configuration.NewsGroupUsername,
                Password = configuration.NewsGroupPassword
            };

            MessagesToPost = new Queue<nntpMessage>();
            PostingThreads = ConstructPostingThreads();
            IsPosting = false;
        }
 public SimpleNntpPostingClient(NewsHostConnectionInfo connectionInfo)
 {
     ConnectionInfo = connectionInfo;
 }
 public SimpleNntpPostingClient(NewsHostConnectionInfo connectionInfo)
 {
     ConnectionInfo = connectionInfo;
 }