C# Класс gelf4net.Extensions

Показать файл Открыть проект

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

Метод Описание
FromUnixTimestamp ( this d ) : System.DateTime
GzipMessage ( this message, Encoding encoding ) : byte[]

Gzips a string

IsNumeric ( this type ) : bool
ToDictionary ( this values ) : IDictionary
ToJson ( this s ) : object
ToUnixTimestamp ( this d ) : double
TruncateMessage ( this message, int length ) : string

Truncate the message

ValidateJSON ( this s ) : bool

Описание методов

FromUnixTimestamp() публичный статический Метод

public static FromUnixTimestamp ( this d ) : System.DateTime
d this
Результат System.DateTime

GzipMessage() публичный статический Метод

Gzips a string
public static GzipMessage ( this message, Encoding encoding ) : byte[]
message this
encoding System.Text.Encoding
Результат byte[]

IsNumeric() публичный статический Метод

public static IsNumeric ( this type ) : bool
type this
Результат bool

ToDictionary() публичный статический Метод

public static ToDictionary ( this values ) : IDictionary
values this
Результат IDictionary

ToJson() публичный статический Метод

public static ToJson ( this s ) : object
s this
Результат object

ToUnixTimestamp() публичный статический Метод

public static ToUnixTimestamp ( this d ) : double
d this
Результат double

TruncateMessage() публичный статический Метод

Truncate the message
public static TruncateMessage ( this message, int length ) : string
message this
length int
Результат string

ValidateJSON() публичный статический Метод

public static ValidateJSON ( this s ) : bool
s this
Результат bool