LumiSoft.Net.SMTP.Server.SMTP_Session.EndSend C# (CSharp) Méthode

EndSend() private méthode

Is called when asynchronous send completes.
private EndSend ( SocketCallBackResult result, long count, Exception exception, object tag ) : void
result SocketCallBackResult If true, then send was successfull.
count long Count sended.
exception System.Exception Exception happend on send. NOTE: available only is result=false.
tag object User data.
Résultat void
        private void EndSend(SocketCallBackResult result,long count,Exception exception,object tag)
        {
            try{
                switch(result)
                {
                    case SocketCallBackResult.Ok:
                        BeginRecieveCmd();
                        break;

                    case SocketCallBackResult.SocketClosed:
                        EndSession();
                        break;

                    case SocketCallBackResult.Exception:
                        OnError(exception);
                        break;
                }
            }
            catch(Exception x){
                OnError(x);
            }
        }