Exemplo n.º 1
0
 public Pop3Command(CancellationToken cancellationToken, Pop3CommandHandler handler, Encoding encoding, string format, params object[] args)
 {
     Command           = string.Format(format, args);
     CancellationToken = cancellationToken;
     Encoding          = encoding;
     Handler           = handler;
 }
Exemplo n.º 2
0
		public Pop3Command (CancellationToken cancellationToken, Pop3CommandHandler handler, Encoding encoding, string format, params object[] args)
		{
			Command = string.Format (format, args);
			CancellationToken = cancellationToken;
			Encoding = encoding;
			Handler = handler;
		}
Exemplo n.º 3
0
        public Pop3Command QueueCommand(CancellationToken cancellationToken, Pop3CommandHandler handler, Encoding encoding, string format, params object[] args)
        {
            var pc = new Pop3Command(cancellationToken, handler, encoding, format, args);

            pc.Id = nextId++;
            queue.Add(pc);
            return(pc);
        }
Exemplo n.º 4
0
 public Pop3Command QueueCommand(CancellationToken cancellationToken, Pop3CommandHandler handler, string format, params object[] args)
 {
     return(QueueCommand(cancellationToken, handler, Encoding.ASCII, format, args));
 }
Exemplo n.º 5
0
 public Pop3Command QueueCommand(CancellationToken cancellationToken, Pop3CommandHandler handler, string format, params object[] args)
 {
     var pc = new Pop3Command (cancellationToken, handler, format, args);
     pc.Id = nextId++;
     queue.Add (pc);
     return pc;
 }
Exemplo n.º 6
0
		public Pop3Command QueueCommand (CancellationToken cancellationToken, Pop3CommandHandler handler, string format, params object[] args)
		{
			return QueueCommand (cancellationToken, handler, Encoding.ASCII, format, args);
		}