Метод | Описание | |
---|---|---|
BytesToHexString ( Array array ) : string | ||
ConvertDictionaryKeys ( Dictionary obj ) : TVal>.Dictionary |
||
CopyUpTo ( Stream source, Stream destination, long maxBytes, int bufferSize = 1024 ) : void |
Copies up to the specified maximal number of bytes to the destination stream.
|
|
DisposeIfNotNull ( IDisposable disposable ) : void |
Disposes of the input object unless it is null.
|
|
DontThrow ( Action action ) : Exception |
Executes the input action and returns an exception if one was thrown.
|
|
GetAssemblyTargetFramework_ ( Assembly eyesSeleniumAsm ) : string | ||
GetAttribute ( Enum value ) : TAttribute | ||
GetAttribute ( object value ) : TAttribute | ||
GetDotNetVersion ( ) : string | ||
GetEnvVar ( string envVarName ) : string | ||
GetInnerException ( Exception ex ) : T | ||
GetSha256Hash ( Array bytes ) : string | ||
ReadResourceBytes ( string filename ) : byte[] | ||
ReadResourceFile ( string filename ) : string | ||
ReadResourceFileAsLines ( string filename ) : IList |
||
ReadResourceStream ( string filename ) : Stream | ||
ReadStreamAsLines ( Stream stream ) : IList |
||
ReadToEnd ( Stream stream, int bufferSize = 1024, int length, long maxLength, Logger logger = null ) : byte[] |
Returns all the bytes of the input stream.
|
|
Retry ( TimeSpan timeout, TimeSpan interval, Func action ) : bool |
Runs the input
|
|
SanitizeUrl ( string url ) : string | ||
ToBytesBE ( int value, Stream stream ) : void |
Writes the big-endian byte representation of the input value to the target stream.
|
|
ToBytesBE ( short value, Stream stream ) : void |
Writes the big-endian byte representation of the input value to the target stream.
|
Метод | Описание | |
---|---|---|
Equals ( ) : System |
public static BytesToHexString ( Array array ) : string | ||
array | Array | |
Результат | string |
public static ConvertDictionaryKeys ( Dictionary obj ) : TVal>.Dictionary |
||
obj | Dictionary | |
Результат | TVal>.Dictionary |
public static CopyUpTo ( Stream source, Stream destination, long maxBytes, int bufferSize = 1024 ) : void | ||
source | Stream | Source stream |
destination | Stream | Destination stream |
maxBytes | long | Maximal number of bytes to copy or |
bufferSize | int | Size of chunks read and written |
Результат | void |
public static DisposeIfNotNull ( IDisposable disposable ) : void | ||
disposable | IDisposable | |
Результат | void |
public static DontThrow ( Action action ) : Exception | ||
action | Action | |
Результат | Exception |
public static GetAssemblyTargetFramework_ ( Assembly eyesSeleniumAsm ) : string | ||
eyesSeleniumAsm | Assembly | |
Результат | string |
public static GetAttribute ( Enum value ) : TAttribute | ||
value | Enum | |
Результат | TAttribute |
public static GetAttribute ( object value ) : TAttribute | ||
value | object | |
Результат | TAttribute |
public static GetDotNetVersion ( ) : string | ||
Результат | string |
public static GetEnvVar ( string envVarName ) : string | ||
envVarName | string | |
Результат | string |
public static GetInnerException ( Exception ex ) : T | ||
ex | Exception | |
Результат | T |
public static GetSha256Hash ( Array bytes ) : string | ||
bytes | Array | |
Результат | string |
public static ReadResourceBytes ( string filename ) : byte[] | ||
filename | string | |
Результат | byte[] |
public static ReadResourceFile ( string filename ) : string | ||
filename | string | |
Результат | string |
public static ReadResourceFileAsLines ( string filename ) : IList |
||
filename | string | |
Результат | IList |
public static ReadResourceStream ( string filename ) : Stream | ||
filename | string | |
Результат | Stream |
public static ReadStreamAsLines ( Stream stream ) : IList |
||
stream | Stream | |
Результат | IList |
public static ReadToEnd ( Stream stream, int bufferSize = 1024, int length, long maxLength, Logger logger = null ) : byte[] | ||
stream | Stream | |
bufferSize | int | |
length | int | |
maxLength | long | |
logger | Logger | |
Результат | byte[] |
public static Retry ( TimeSpan timeout, TimeSpan interval, Func action ) : bool | ||
timeout | TimeSpan | |
interval | TimeSpan | |
action | Func | |
Результат | bool |
public static SanitizeUrl ( string url ) : string | ||
url | string | |
Результат | string |
public static ToBytesBE ( int value, Stream stream ) : void | ||
value | int | |
stream | Stream | |
Результат | void |
public static ToBytesBE ( short value, Stream stream ) : void | ||
value | short | |
stream | Stream | |
Результат | void |