C# 클래스 VSTOContrib.Core.Extensions.CommonExtensions

Common extensions that are not Office specific, but are used by the library
파일 보기 프로젝트 열기: metamorph-inc/meta-core

공개 메소드들

메소드 설명
CallWithTimeout ( this action, int timeoutMilliseconds ) : void

Calls the action with a timeout.

StartProcess ( this processStartInfo, DataReceivedEventHandler outputDataRecieved ) : int

Starts the process, and reads all output from the process

ToFullStackTrace ( this ex ) : string

Gets the full stack trace, including inner exceptions.

ToFullStackTrace ( this ex, int count ) : string

Gets the full stack trace, including inner exceptions up to a specified level

ToMessageStack ( this ex ) : string

Gets all messages (including inner exceptions) from the exception

메소드 상세

CallWithTimeout() 공개 정적인 메소드

Calls the action with a timeout.
If timeout occurs
public static CallWithTimeout ( this action, int timeoutMilliseconds ) : void
action this The action.
timeoutMilliseconds int The timeout milliseconds.
리턴 void

StartProcess() 공개 정적인 메소드

Starts the process, and reads all output from the process
public static StartProcess ( this processStartInfo, DataReceivedEventHandler outputDataRecieved ) : int
processStartInfo this The process start info.
outputDataRecieved DataReceivedEventHandler The output data recieved.
리턴 int

ToFullStackTrace() 공개 정적인 메소드

Gets the full stack trace, including inner exceptions.
public static ToFullStackTrace ( this ex ) : string
ex this The ex.
리턴 string

ToFullStackTrace() 공개 정적인 메소드

Gets the full stack trace, including inner exceptions up to a specified level
public static ToFullStackTrace ( this ex, int count ) : string
ex this The ex.
count int The count.
리턴 string

ToMessageStack() 공개 정적인 메소드

Gets all messages (including inner exceptions) from the exception
public static ToMessageStack ( this ex ) : string
ex this The ex.
리턴 string