C# Класс WaveBox.ServerUtility

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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