C# 클래스 WebApplications.Utilities.Service.ConsoleConnection

상속: IDisposable, IConnection
파일 보기 프로젝트 열기: webappsuk/CoreLibraries 1 사용 예제들

Private Properties

프로퍼티 타입 설명
ConsoleConnection System
GetUserNamePassword void
WritePrompt void

공개 메소드들

메소드 설명
Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

OnDisconnect ( ) : void

Called when the server disconnects the UI.

RunAsync ( [ service, RunMode runMode = RunMode.Default, [ defaultLogFormat = null, LoggingLevels defaultLoggingLevels = LoggingLevels.All, CancellationToken token = default(CancellationToken) ) : Task

Runs the specified service using the command console as a user interface.

비공개 메소드들

메소드 설명
ConsoleConnection ( FormatBuilder defaultLogFormat, LoggingLevels defaultLoggingLevels, CancellationToken token ) : System

Prevents a default instance of the ConsoleConnection class from being created.

GetUserNamePassword ( string &userName, string &password ) : void

Gets the user name and password from the console.

WritePrompt ( [ service ) : void

Writes the prompt.

메소드 상세

Dispose() 공개 메소드

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
리턴 void

OnDisconnect() 공개 메소드

Called when the server disconnects the UI.
public OnDisconnect ( ) : void
리턴 void

RunAsync() 공개 정적인 메소드

Runs the specified service using the command console as a user interface.
public static RunAsync ( [ service, RunMode runMode = RunMode.Default, [ defaultLogFormat = null, LoggingLevels defaultLoggingLevels = LoggingLevels.All, CancellationToken token = default(CancellationToken) ) : Task
service [ The service.
runMode RunMode The run mode.
defaultLogFormat [ The default log format.
defaultLoggingLevels LoggingLevels The default logging levels.
token System.Threading.CancellationToken The token.
리턴 Task