C# 클래스 SmtpServer.Protocol.SmtpStateMachine.StateTable

상속: IEnumerable
파일 보기 프로젝트 열기: cosullivan/SmtpServer

공개 메소드들

메소드 설명
Add ( State state ) : void

Add the given state.

Initialize ( SmtpState stateId ) : void

Sets the initial state.

TryAccept ( TokenEnumerator tokenEnumerator, SmtpCommand &command, SmtpResponse &errorResponse ) : bool

Advances the enumerator to the next command in the stream.

this ( SmtpState stateId ) : State

Returns the state with the given ID.

비공개 메소드들

메소드 설명
IEnumerable ( ) : IEnumerator

Returns an enumerator that iterates through a collection.

메소드 상세

Add() 공개 메소드

Add the given state.
public Add ( State state ) : void
state State
리턴 void

Initialize() 공개 메소드

Sets the initial state.
public Initialize ( SmtpState stateId ) : void
stateId SmtpState The ID of the initial state.
리턴 void

TryAccept() 공개 메소드

Advances the enumerator to the next command in the stream.
public TryAccept ( TokenEnumerator tokenEnumerator, SmtpCommand &command, SmtpResponse &errorResponse ) : bool
tokenEnumerator SmtpServer.Protocol.Text.TokenEnumerator The token enumerator to accept the command from.
command SmtpCommand The command that is defined within the token enumerator.
errorResponse SmtpResponse The error that indicates why the command could not be made.
리턴 bool

this() 공개 메소드

Returns the state with the given ID.
public this ( SmtpState stateId ) : State
stateId SmtpState The state ID to return.
리턴 State