C# 클래스 Kamsar.WebConsole.WebConsole

Implements a basic WebConsole in HTML snippets. When using this class you're responsible for wrapping HTML and making sure the console output is emitted at a proper location.
상속: IProgressStatus
파일 보기 프로젝트 열기: kamsar/Kamsar.WebConsole

공개 메소드들

메소드 설명
Render ( ) : void

Renders all WebConsole components. If some components have already been rendered individually, they will not be rendered again.

RenderConsole ( ) : void

Renders the output console portion of the WebConsole.

RenderProgressBar ( ) : void

Renders the progress bar portion of the WebConsole.

RenderResources ( ) : void

Renders the required CSS and JS for the WebConsole. Resources are stored as WebResources.

SetProgress ( int percent ) : void

Sets the percentage complete display

SetProgress ( long itemsProcessed, long totalItems ) : void

Sets the percentage complete display, given a proportion of completeness

SetTransientStatus ( string statusMessage ) : void

Writes a progress status message to the status line beneath the progress bar.

WebConsole ( HttpResponse response ) : System
WebConsole ( HttpResponse response, bool forceBuffer ) : System
WebConsole ( System.Web.HttpResponseBase response ) : System
WebConsole ( System.Web.HttpResponseBase response, bool forceBuffer ) : System
Write ( string statusMessage ) : void

Writes a message to the WebConsole's console output

Write ( string statusMessage, MessageType type ) : void

Writes a message to the WebConsole's console output

WriteException ( Exception exception ) : void

Writes an exception to the WebConsole's console output. Execution continues after the write completes.

WriteLine ( string statusMessage ) : void

Writes a message, followed by an end-line, to the WebConsole's console output

WriteLine ( string statusMessage, MessageType type ) : void

Writes a message, followed by an end-line, to the WebConsole's console output

WriteScript ( string script ) : void

Writes and executes a JavaScript statement on the console page. You don't need script tags, only JS content.

비공개 메소드들

메소드 설명
IProgressStatus ( Exception exception ) : void
IProgressStatus ( int percent ) : void
IProgressStatus ( string statusMessage ) : void
IProgressStatus ( string statusMessage, MessageType type ) : void
WriteInnerException ( Exception innerException, StringBuilder exMessage ) : void

메소드 상세

Render() 공개 메소드

Renders all WebConsole components. If some components have already been rendered individually, they will not be rendered again.
public Render ( ) : void
리턴 void

RenderConsole() 공개 메소드

Renders the output console portion of the WebConsole.
public RenderConsole ( ) : void
리턴 void

RenderProgressBar() 공개 메소드

Renders the progress bar portion of the WebConsole.
public RenderProgressBar ( ) : void
리턴 void

RenderResources() 공개 메소드

Renders the required CSS and JS for the WebConsole. Resources are stored as WebResources.
public RenderResources ( ) : void
리턴 void

SetProgress() 공개 메소드

Sets the percentage complete display
public SetProgress ( int percent ) : void
percent int
리턴 void

SetProgress() 공개 메소드

Sets the percentage complete display, given a proportion of completeness
public SetProgress ( long itemsProcessed, long totalItems ) : void
itemsProcessed long
totalItems long
리턴 void

SetTransientStatus() 공개 메소드

Writes a progress status message to the status line beneath the progress bar.
public SetTransientStatus ( string statusMessage ) : void
statusMessage string
리턴 void

WebConsole() 공개 메소드

public WebConsole ( HttpResponse response ) : System
response System.Web.HttpResponse
리턴 System

WebConsole() 공개 메소드

public WebConsole ( HttpResponse response, bool forceBuffer ) : System
response System.Web.HttpResponse
forceBuffer bool
리턴 System

WebConsole() 공개 메소드

public WebConsole ( System.Web.HttpResponseBase response ) : System
response System.Web.HttpResponseBase
리턴 System

WebConsole() 공개 메소드

public WebConsole ( System.Web.HttpResponseBase response, bool forceBuffer ) : System
response System.Web.HttpResponseBase
forceBuffer bool
리턴 System

Write() 공개 메소드

Writes a message to the WebConsole's console output
public Write ( string statusMessage ) : void
statusMessage string
리턴 void

Write() 공개 메소드

Writes a message to the WebConsole's console output
public Write ( string statusMessage, MessageType type ) : void
statusMessage string
type MessageType
리턴 void

WriteException() 공개 메소드

Writes an exception to the WebConsole's console output. Execution continues after the write completes.
public WriteException ( Exception exception ) : void
exception System.Exception
리턴 void

WriteLine() 공개 메소드

Writes a message, followed by an end-line, to the WebConsole's console output
public WriteLine ( string statusMessage ) : void
statusMessage string
리턴 void

WriteLine() 공개 메소드

Writes a message, followed by an end-line, to the WebConsole's console output
public WriteLine ( string statusMessage, MessageType type ) : void
statusMessage string
type MessageType
리턴 void

WriteScript() 공개 메소드

Writes and executes a JavaScript statement on the console page. You don't need script tags, only JS content.
public WriteScript ( string script ) : void
script string
리턴 void