C# 클래스 WhiteCore.Framework.Utilities.Utilities

파일 보기 프로젝트 열기: WhiteCoreSim/WhiteCore-Dev

공개 프로퍼티들

프로퍼티 타입 설명
HostName string
RegionNames string[]
UserNames string[]

공개 메소드들

메소드 설명
Decrypt ( string cipherText, string passPhrase, string saltValue ) : string

Decrypts specified ciphertext using Rijndael symmetric key algorithm.

Most of the logic in this function is similar to the Encrypt logic. In order for decryption to work, all parameters of this function - except cipherText value - must match the corresponding parameters of the Encrypt function which was called to generate the ciphertext.

DownloadFile ( string downloadLink, string filename ) : void

Download the file from downloadLink and save it to WhiteCore + Version +

DownloadFileAsync ( string downloadLink, string filename, DownloadProgressChangedEventHandler onProgress, AsyncCompletedEventHandler onComplete ) : void

Downloads a file async

Encrypt ( string plainText, string passPhrase, string saltValue ) : string

Encrypts specified plaintext using Rijndael symmetric key algorithm and returns a base64-encoded result.

GetAddress ( ) : string

Get the URL to our sim

GetExternalIp ( ) : string

Get OUR external IP

GetLocalIp ( ) : string

Get local IP address of system (Assumes only one address present... or gives the first valid address if mmultiple)

GetMaxMaturity ( int Maturity ) : string
GetNextWeekday ( System.DateTime start, DayOfWeek day ) : System.DateTime
GetRegionMaturity ( int Maturity ) : string
GetServerReleaseNotesURL ( ) : string

Get the URL to the release notes for the current version of WhiteCore

GetShortRegionMaturity ( int Maturity ) : string
IsSystemUser ( OpenMetaverse userID ) : bool

Determines whether the specified userID is a system user.

IsValidEmail ( string address ) : bool

Determines whether a string is a valid email address.

ReadExternalWebsite ( string URL ) : string

Read a website into a string

RoundDown ( System.DateTime dt, System.TimeSpan d ) : System.DateTime
RoundToNearest ( System.DateTime dt, System.TimeSpan d ) : System.DateTime
RoundUp ( System.DateTime dt, System.TimeSpan d ) : System.DateTime

Rounds up a DateTime to the nearest

SetEncryptIterations ( int iterations ) : void

This is for encryption, it sets the number of times to iterate through the encryption

SetEncryptorType ( string type ) : void
SetKeySize ( int size ) : void

This is for encryption, it sets the size of the key

TransactionTypeInfo ( TransactionType transType ) : string
WhiteCoreServerVersion ( ) : string

What is our version?

비공개 메소드들

메소드 설명
UnGzip ( byte data, int start ) : byte[]

메소드 상세

Decrypt() 공개 정적인 메소드

Decrypts specified ciphertext using Rijndael symmetric key algorithm.
Most of the logic in this function is similar to the Encrypt logic. In order for decryption to work, all parameters of this function - except cipherText value - must match the corresponding parameters of the Encrypt function which was called to generate the ciphertext.
public static Decrypt ( string cipherText, string passPhrase, string saltValue ) : string
cipherText string /// Base64-formatted ciphertext value. ///
passPhrase string /// Passphrase from which a pseudo-random password will be derived. The /// derived password will be used to generate the encryption key. /// Passphrase can be any string. In this example we assume that this /// passphrase is an ASCII string. ///
saltValue string /// Salt value used along with passphrase to generate password. Salt can /// be any string. In this example we assume that salt is an ASCII string. ///
리턴 string

DownloadFile() 공개 정적인 메소드

Download the file from downloadLink and save it to WhiteCore + Version +
public static DownloadFile ( string downloadLink, string filename ) : void
downloadLink string Link to the download
filename string Name to put the download in
리턴 void

DownloadFileAsync() 공개 정적인 메소드

Downloads a file async
public static DownloadFileAsync ( string downloadLink, string filename, DownloadProgressChangedEventHandler onProgress, AsyncCompletedEventHandler onComplete ) : void
downloadLink string
filename string
onProgress DownloadProgressChangedEventHandler can be null
onComplete AsyncCompletedEventHandler can be null
리턴 void

Encrypt() 공개 정적인 메소드

Encrypts specified plaintext using Rijndael symmetric key algorithm and returns a base64-encoded result.
public static Encrypt ( string plainText, string passPhrase, string saltValue ) : string
plainText string /// Plaintext value to be encrypted. ///
passPhrase string /// Passphrase from which a pseudo-random password will be derived. The /// derived password will be used to generate the encryption key. /// Passphrase can be any string. In this example we assume that this /// passphrase is an ASCII string. ///
saltValue string /// Salt value used along with passphrase to generate password. Salt can /// be any string. In this example we assume that salt is an ASCII string. ///
리턴 string

GetAddress() 공개 정적인 메소드

Get the URL to our sim
public static GetAddress ( ) : string
리턴 string

GetExternalIp() 공개 정적인 메소드

Get OUR external IP
public static GetExternalIp ( ) : string
리턴 string

GetLocalIp() 공개 정적인 메소드

Get local IP address of system (Assumes only one address present... or gives the first valid address if mmultiple)
public static GetLocalIp ( ) : string
리턴 string

GetMaxMaturity() 공개 정적인 메소드

public static GetMaxMaturity ( int Maturity ) : string
Maturity int
리턴 string

GetNextWeekday() 공개 정적인 메소드

public static GetNextWeekday ( System.DateTime start, DayOfWeek day ) : System.DateTime
start System.DateTime
day DayOfWeek
리턴 System.DateTime

GetRegionMaturity() 공개 정적인 메소드

public static GetRegionMaturity ( int Maturity ) : string
Maturity int
리턴 string

GetServerReleaseNotesURL() 공개 정적인 메소드

Get the URL to the release notes for the current version of WhiteCore
public static GetServerReleaseNotesURL ( ) : string
리턴 string

GetShortRegionMaturity() 공개 정적인 메소드

public static GetShortRegionMaturity ( int Maturity ) : string
Maturity int
리턴 string

IsSystemUser() 공개 정적인 메소드

Determines whether the specified userID is a system user.
public static IsSystemUser ( OpenMetaverse userID ) : bool
userID OpenMetaverse User I.
리턴 bool

IsValidEmail() 공개 정적인 메소드

Determines whether a string is a valid email address.
public static IsValidEmail ( string address ) : bool
address string Address.
리턴 bool

ReadExternalWebsite() 공개 정적인 메소드

Read a website into a string
public static ReadExternalWebsite ( string URL ) : string
URL string URL to change into a string
리턴 string

RoundDown() 공개 정적인 메소드

public static RoundDown ( System.DateTime dt, System.TimeSpan d ) : System.DateTime
dt System.DateTime
d System.TimeSpan
리턴 System.DateTime

RoundToNearest() 공개 정적인 메소드

public static RoundToNearest ( System.DateTime dt, System.TimeSpan d ) : System.DateTime
dt System.DateTime
d System.TimeSpan
리턴 System.DateTime

RoundUp() 공개 정적인 메소드

Rounds up a DateTime to the nearest
public static RoundUp ( System.DateTime dt, System.TimeSpan d ) : System.DateTime
dt System.DateTime DateTime
d System.TimeSpan Delta time
리턴 System.DateTime

SetEncryptIterations() 공개 정적인 메소드

This is for encryption, it sets the number of times to iterate through the encryption
public static SetEncryptIterations ( int iterations ) : void
iterations int
리턴 void

SetEncryptorType() 공개 정적인 메소드

public static SetEncryptorType ( string type ) : void
type string
리턴 void

SetKeySize() 공개 정적인 메소드

This is for encryption, it sets the size of the key
public static SetKeySize ( int size ) : void
size int
리턴 void

TransactionTypeInfo() 공개 정적인 메소드

public static TransactionTypeInfo ( TransactionType transType ) : string
transType TransactionType
리턴 string

WhiteCoreServerVersion() 공개 정적인 메소드

What is our version?
public static WhiteCoreServerVersion ( ) : string
리턴 string

프로퍼티 상세

HostName 공개적으로 정적으로 프로퍼티

public static string HostName
리턴 string

RegionNames 공개적으로 정적으로 프로퍼티

public static string[] RegionNames
리턴 string[]

UserNames 공개적으로 정적으로 프로퍼티

public static string[] UserNames
리턴 string[]