C# 클래스 Schumix.Framework.Util.Utilities

파일 보기 프로젝트 열기: Schumix/Schumix2

공개 메소드들

메소드 설명
CleanHomeDirectory ( bool server = false ) : void
ClearAttributes ( string currentDir ) : void
CopyDirectory ( string source, string target ) : void
CreateDirectory ( string Name ) : void
CreateFile ( string Name ) : void
CreatePidFile ( string Name ) : void
DownloadFile ( string url, string filename ) : void
DownloadString ( Uri url, Regex regex, int maxlength ) : string
DownloadString ( Uri url, int maxlength ) : string
DownloadString ( Uri url, int timeout, Regex regex, int maxlength ) : string
DownloadString ( Uri url, int timeout, string Contains, NetworkCredential credential, int maxlength ) : string
DownloadString ( Uri url, int timeout, string Contains, int maxlength ) : string
DownloadString ( Uri url, string Contains, NetworkCredential credential, int maxlength ) : string
DownloadString ( Uri url, string Contains, int maxlength ) : string
DownloadString ( string url, Regex regex, int maxlength ) : string
DownloadString ( string url, int maxlength ) : string
DownloadString ( string url, int timeout, Regex regex, int maxlength ) : string
DownloadString ( string url, int timeout, string Contains, NetworkCredential credential, int maxlength ) : string
DownloadString ( string url, int timeout, string Contains, int maxlength ) : string
DownloadString ( string url, string Contains, NetworkCredential credential, int maxlength ) : string
DownloadString ( string url, string Contains, int maxlength ) : string
GetCpuId ( ) : string

Gets the cpu brand string.

GetDateTimeFromUnixTime ( long unixTime ) : System.DateTime

Gets the date time from unix time.

GetEpochTime ( ) : long

Gets the time since the Unix epoch.

GetEpochTimeFromDT ( ) : long

Gets the time between the Unix epich and a specific time.

GetEpochTimeFromDT ( System.DateTime time ) : long

Gets the time between the Unix epich and a specific time.

GetFunctionUpdate ( ) : string
GetRandomString ( ) : string
GetSpecialDirectory ( string data ) : string
GetSystemTime ( ) : long

Gets the system uptime.

GetSystemTimeLong ( ) : long

Gets the system uptime.

Even though this returns a long, the original value is a 32-bit integer, so it will wrap back to 0 after approximately 49 and half days of system uptime.

GetUTCTimeMillis ( long millis ) : System.DateTime

Gets the UTC time from millis.

GetUTCTimeSeconds ( long seconds ) : System.DateTime

Gets the UTC time from seconds.

GetUnixTimeStart ( ) : System.DateTime
GetUrl ( string url ) : string
GetUrl ( string url, string args ) : string
GetUrl ( string url, string args, string noencode ) : string
GetUrlEncoding ( string url, string encoding ) : string
GetUrlEncoding ( string url, string args, string encoding ) : string
GetUrlEncoding ( string url, string args, string noencode, string encoding ) : string
GetUrls ( string text ) : List

Gets the URLs in the specified text.

GetUserName ( ) : string
GetVersion ( ) : string
IsDay ( int Year, int Month, int Day ) : bool
IsPrime ( long x ) : bool
IsSpecialDirectory ( string dir ) : bool
IsValueBiggerDateTimeNow ( int Year, int Month, int Day, int Hour, int Minute ) : bool
MD5File ( string fileName ) : string
Md5 ( string value ) : string
MoveDirectory ( string source, string target ) : void
NameDay ( string Language ) : string
RemovePidFile ( ) : void
Sha1 ( string value ) : string
SqlEscape ( string text ) : string
ToMilliSecondsInt ( int ticks ) : int

Converts ticks to miliseconds.

비공개 메소드들

메소드 설명
Utilities ( ) : System

메소드 상세

CleanHomeDirectory() 공개 메소드

public CleanHomeDirectory ( bool server = false ) : void
server bool
리턴 void

ClearAttributes() 공개 메소드

public ClearAttributes ( string currentDir ) : void
currentDir string
리턴 void

CopyDirectory() 공개 메소드

public CopyDirectory ( string source, string target ) : void
source string
target string
리턴 void

CreateDirectory() 공개 메소드

public CreateDirectory ( string Name ) : void
Name string
리턴 void

CreateFile() 공개 메소드

public CreateFile ( string Name ) : void
Name string
리턴 void

CreatePidFile() 공개 메소드

public CreatePidFile ( string Name ) : void
Name string
리턴 void

DownloadFile() 공개 메소드

public DownloadFile ( string url, string filename ) : void
url string
filename string
리턴 void

DownloadString() 공개 메소드

public DownloadString ( Uri url, Regex regex, int maxlength ) : string
url System.Uri
regex System.Text.RegularExpressions.Regex
maxlength int
리턴 string

DownloadString() 공개 메소드

public DownloadString ( Uri url, int maxlength ) : string
url System.Uri
maxlength int
리턴 string

DownloadString() 공개 메소드

public DownloadString ( Uri url, int timeout, Regex regex, int maxlength ) : string
url System.Uri
timeout int
regex System.Text.RegularExpressions.Regex
maxlength int
리턴 string

DownloadString() 공개 메소드

public DownloadString ( Uri url, int timeout, string Contains, NetworkCredential credential, int maxlength ) : string
url System.Uri
timeout int
Contains string
credential System.Net.NetworkCredential
maxlength int
리턴 string

DownloadString() 공개 메소드

public DownloadString ( Uri url, int timeout, string Contains, int maxlength ) : string
url System.Uri
timeout int
Contains string
maxlength int
리턴 string

DownloadString() 공개 메소드

public DownloadString ( Uri url, string Contains, NetworkCredential credential, int maxlength ) : string
url System.Uri
Contains string
credential System.Net.NetworkCredential
maxlength int
리턴 string

DownloadString() 공개 메소드

public DownloadString ( Uri url, string Contains, int maxlength ) : string
url System.Uri
Contains string
maxlength int
리턴 string

DownloadString() 공개 메소드

public DownloadString ( string url, Regex regex, int maxlength ) : string
url string
regex System.Text.RegularExpressions.Regex
maxlength int
리턴 string

DownloadString() 공개 메소드

public DownloadString ( string url, int maxlength ) : string
url string
maxlength int
리턴 string

DownloadString() 공개 메소드

public DownloadString ( string url, int timeout, Regex regex, int maxlength ) : string
url string
timeout int
regex System.Text.RegularExpressions.Regex
maxlength int
리턴 string

DownloadString() 공개 메소드

public DownloadString ( string url, int timeout, string Contains, NetworkCredential credential, int maxlength ) : string
url string
timeout int
Contains string
credential System.Net.NetworkCredential
maxlength int
리턴 string

DownloadString() 공개 메소드

public DownloadString ( string url, int timeout, string Contains, int maxlength ) : string
url string
timeout int
Contains string
maxlength int
리턴 string

DownloadString() 공개 메소드

public DownloadString ( string url, string Contains, NetworkCredential credential, int maxlength ) : string
url string
Contains string
credential System.Net.NetworkCredential
maxlength int
리턴 string

DownloadString() 공개 메소드

public DownloadString ( string url, string Contains, int maxlength ) : string
url string
Contains string
maxlength int
리턴 string

GetCpuId() 공개 메소드

Gets the cpu brand string.
public GetCpuId ( ) : string
리턴 string

GetDateTimeFromUnixTime() 공개 메소드

Gets the date time from unix time.
public GetDateTimeFromUnixTime ( long unixTime ) : System.DateTime
unixTime long The unix time.
리턴 System.DateTime

GetEpochTime() 공개 메소드

Gets the time since the Unix epoch.
public GetEpochTime ( ) : long
리턴 long

GetEpochTimeFromDT() 공개 메소드

Gets the time between the Unix epich and a specific time.
public GetEpochTimeFromDT ( ) : long
리턴 long

GetEpochTimeFromDT() 공개 메소드

Gets the time between the Unix epich and a specific time.
public GetEpochTimeFromDT ( System.DateTime time ) : long
time System.DateTime the end time
리턴 long

GetFunctionUpdate() 공개 메소드

public GetFunctionUpdate ( ) : string
리턴 string

GetRandomString() 공개 메소드

public GetRandomString ( ) : string
리턴 string

GetSpecialDirectory() 공개 메소드

public GetSpecialDirectory ( string data ) : string
data string
리턴 string

GetSystemTime() 공개 메소드

Gets the system uptime.
public GetSystemTime ( ) : long
리턴 long

GetSystemTimeLong() 공개 메소드

Gets the system uptime.
Even though this returns a long, the original value is a 32-bit integer, so it will wrap back to 0 after approximately 49 and half days of system uptime.
public GetSystemTimeLong ( ) : long
리턴 long

GetUTCTimeMillis() 공개 메소드

Gets the UTC time from millis.
public GetUTCTimeMillis ( long millis ) : System.DateTime
millis long The millis.
리턴 System.DateTime

GetUTCTimeSeconds() 공개 메소드

Gets the UTC time from seconds.
public GetUTCTimeSeconds ( long seconds ) : System.DateTime
seconds long The seconds.
리턴 System.DateTime

GetUnixTimeStart() 공개 메소드

public GetUnixTimeStart ( ) : System.DateTime
리턴 System.DateTime

GetUrl() 공개 메소드

public GetUrl ( string url ) : string
url string
리턴 string

GetUrl() 공개 메소드

public GetUrl ( string url, string args ) : string
url string
args string
리턴 string

GetUrl() 공개 메소드

public GetUrl ( string url, string args, string noencode ) : string
url string
args string
noencode string
리턴 string

GetUrlEncoding() 공개 메소드

public GetUrlEncoding ( string url, string encoding ) : string
url string
encoding string
리턴 string

GetUrlEncoding() 공개 메소드

public GetUrlEncoding ( string url, string args, string encoding ) : string
url string
args string
encoding string
리턴 string

GetUrlEncoding() 공개 메소드

public GetUrlEncoding ( string url, string args, string noencode, string encoding ) : string
url string
args string
noencode string
encoding string
리턴 string

GetUrls() 공개 메소드

Gets the URLs in the specified text.
public GetUrls ( string text ) : List
text string /// The text to search in. ///
리턴 List

GetUserName() 공개 메소드

public GetUserName ( ) : string
리턴 string

GetVersion() 공개 메소드

public GetVersion ( ) : string
리턴 string

IsDay() 공개 메소드

public IsDay ( int Year, int Month, int Day ) : bool
Year int
Month int
Day int
리턴 bool

IsPrime() 공개 메소드

public IsPrime ( long x ) : bool
x long
리턴 bool

IsSpecialDirectory() 공개 메소드

public IsSpecialDirectory ( string dir ) : bool
dir string
리턴 bool

IsValueBiggerDateTimeNow() 공개 메소드

public IsValueBiggerDateTimeNow ( int Year, int Month, int Day, int Hour, int Minute ) : bool
Year int
Month int
Day int
Hour int
Minute int
리턴 bool

MD5File() 공개 메소드

public MD5File ( string fileName ) : string
fileName string
리턴 string

Md5() 공개 메소드

public Md5 ( string value ) : string
value string
리턴 string

MoveDirectory() 공개 메소드

public MoveDirectory ( string source, string target ) : void
source string
target string
리턴 void

NameDay() 공개 메소드

public NameDay ( string Language ) : string
Language string
리턴 string

RemovePidFile() 공개 메소드

public RemovePidFile ( ) : void
리턴 void

Sha1() 공개 메소드

public Sha1 ( string value ) : string
value string
리턴 string

SqlEscape() 공개 메소드

public SqlEscape ( string text ) : string
text string
리턴 string

ToMilliSecondsInt() 공개 메소드

Converts ticks to miliseconds.
public ToMilliSecondsInt ( int ticks ) : int
ticks int
리턴 int