C# 클래스 WaveBox.ServerUtility

파일 보기 프로젝트 열기: einsteinx2/WaveBox 1 사용 예제들

공개 메소드들

메소드 설명
CallerMethodName ( ) : string
DetectOS ( ) : OS

DetectOS uses a couple different tricks to detect if we are running on Windows, Mac OSX, or Unix.

ExecutablePath ( ) : string

Detects WaveBox's executable path

GetBuildDate ( ) : System.DateTime

Returns a DateTime object containing the date on which WaveBox was compiled (good for nightly build names, as well as information on reporting issues which may occur later on.

GetServerGuid ( ) : string

Retrieve the server's GUID for URL forwarding, or generate a new one if none exists

GetServerUrl ( ) : string

Retrieve the server's forwarding URL from database

KernelUname ( ) : string

Calls the system's uname function, to return the name of the current kernel (e.g. Darwin (Mac OSX), Linux, FreeBSD, etc.)

ReportCrash ( Exception exception, bool terminateProcess ) : void

Called whenever WaveBox encounters a fatal error, resulting in a crash. When configured, this will automatically report the exception to WaveBox's crash dump service. If not configured, the exception will be dumped to the log, and the user may choose to report it manually.

RootPath ( ) : string

Detects WaveBox's root directory, for storing per-user configuration

ToDescription ( this value ) : string

비공개 메소드들

메소드 설명
ReportCrashAsyncCallback ( object sender, UploadStringCompletedEventArgs e ) : void
uname ( IntPtr buf ) : int

메소드 상세

CallerMethodName() 공개 정적인 메소드

public static CallerMethodName ( ) : string
리턴 string

DetectOS() 공개 정적인 메소드

DetectOS uses a couple different tricks to detect if we are running on Windows, Mac OSX, or Unix.
public static DetectOS ( ) : OS
리턴 OS

ExecutablePath() 공개 정적인 메소드

Detects WaveBox's executable path
public static ExecutablePath ( ) : string
리턴 string

GetBuildDate() 공개 정적인 메소드

Returns a DateTime object containing the date on which WaveBox was compiled (good for nightly build names, as well as information on reporting issues which may occur later on.
public static GetBuildDate ( ) : System.DateTime
리턴 System.DateTime

GetServerGuid() 공개 정적인 메소드

Retrieve the server's GUID for URL forwarding, or generate a new one if none exists
public static GetServerGuid ( ) : string
리턴 string

GetServerUrl() 공개 정적인 메소드

Retrieve the server's forwarding URL from database
public static GetServerUrl ( ) : string
리턴 string

KernelUname() 공개 정적인 메소드

Calls the system's uname function, to return the name of the current kernel (e.g. Darwin (Mac OSX), Linux, FreeBSD, etc.)
public static KernelUname ( ) : string
리턴 string

ReportCrash() 공개 정적인 메소드

Called whenever WaveBox encounters a fatal error, resulting in a crash. When configured, this will automatically report the exception to WaveBox's crash dump service. If not configured, the exception will be dumped to the log, and the user may choose to report it manually.
public static ReportCrash ( Exception exception, bool terminateProcess ) : void
exception System.Exception
terminateProcess bool
리턴 void

RootPath() 공개 정적인 메소드

Detects WaveBox's root directory, for storing per-user configuration
public static RootPath ( ) : string
리턴 string

ToDescription() 공개 정적인 메소드

public static ToDescription ( this value ) : string
value this
리턴 string