C# 클래스 Rnwood.SmtpServer.Server

상속: IServer
파일 보기 프로젝트 열기: rnwood/smtp4dev 1 사용 예제들

공개 메소드들

메소드 설명
Dispose ( ) : void
KillConnections ( ) : void
Server ( IServerBehaviour behaviour ) : Microsoft.Extensions.Logging
Start ( ) : void

Runs the server asynchronously. This method returns once the server has been started. To stop the server call the Stop() method.

Stop ( ) : void

Stops the running server. Any existing connections are terminated.

Stop ( bool killConnections ) : void

Stops the running server. This method blocks until all connections have terminated, either by normal completion or timeout, or if killConnections has been specified then once all of the threads have been killed.

WaitForNextConnection ( ) : void

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

비공개 메소드들

메소드 설명
AcceptNextClient ( ) : Task
Core ( ) : void
GetVerbMap ( ) : IVerbMap

메소드 상세

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

Dispose() 보호된 메소드

protected Dispose ( bool disposing ) : void
disposing bool
리턴 void

KillConnections() 공개 메소드

public KillConnections ( ) : void
리턴 void

Server() 공개 메소드

public Server ( IServerBehaviour behaviour ) : Microsoft.Extensions.Logging
behaviour IServerBehaviour
리턴 Microsoft.Extensions.Logging

Start() 공개 메소드

Runs the server asynchronously. This method returns once the server has been started. To stop the server call the Stop() method.
if the server is already running.
public Start ( ) : void
리턴 void

Stop() 공개 메소드

Stops the running server. Any existing connections are terminated.
if the server is not running.
public Stop ( ) : void
리턴 void

Stop() 공개 메소드

Stops the running server. This method blocks until all connections have terminated, either by normal completion or timeout, or if killConnections has been specified then once all of the threads have been killed.
if the server is not running.
public Stop ( bool killConnections ) : void
killConnections bool True if existing connections should be terminated.
리턴 void

WaitForNextConnection() 공개 메소드

public WaitForNextConnection ( ) : void
리턴 void