示例#1
0
        public Pop3CommandResult ExecuteQuit()
        {
            Quit cm = new Quit();
            Pop3CommandResult rs = null;
            String            s  = "";

            this.EnsureOpen();
            s  = this.Execute(cm);
            rs = new Pop3CommandResult(s);
            return(rs);
        }
示例#2
0
        public Pop3CommandResult ExecuteDele(Int64 mailIndex)
        {
            Dele cm = new Dele(mailIndex);
            Pop3CommandResult rs = null;
            String            s  = "";

            this.CheckAuthenticate();
            s  = this.Execute(cm);
            rs = new Pop3CommandResult(s);
            return(rs);
        }
示例#3
0
        public Pop3CommandResult ExecuteRset()
        {
            Rset cm = new Rset();
            Pop3CommandResult rs = null;
            String            s  = "";

            this.CheckAuthenticate();
            s  = this.Execute(cm);
            rs = new Pop3CommandResult(s);
            return(rs);
        }
示例#4
0
        public void ExecuteQuit(Action <Pop3CommandResult> callbackFunction)
        {
            Quit           cm = null;
            EndGetResponse md = null;

            md = new EndGetResponse(delegate(String responseString)
            {
                Pop3CommandResult rs = new Pop3CommandResult(responseString);
                callbackFunction(rs);
            });
            this.EnsureOpen();
            cm = new Quit();
            this.BeginExecute(cm, md);
        }