C# Class gelf4net.Extensions

Afficher le fichier Open project: jjchiw/gelf4net

Méthodes publiques

Méthode Description
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

Method Details

FromUnixTimestamp() public static méthode

public static FromUnixTimestamp ( this d ) : System.DateTime
d this
Résultat System.DateTime

GzipMessage() public static méthode

Gzips a string
public static GzipMessage ( this message, Encoding encoding ) : byte[]
message this
encoding System.Text.Encoding
Résultat byte[]

IsNumeric() public static méthode

public static IsNumeric ( this type ) : bool
type this
Résultat bool

ToDictionary() public static méthode

public static ToDictionary ( this values ) : IDictionary
values this
Résultat IDictionary

ToJson() public static méthode

public static ToJson ( this s ) : object
s this
Résultat object

ToUnixTimestamp() public static méthode

public static ToUnixTimestamp ( this d ) : double
d this
Résultat double

TruncateMessage() public static méthode

Truncate the message
public static TruncateMessage ( this message, int length ) : string
message this
length int
Résultat string

ValidateJSON() public static méthode

public static ValidateJSON ( this s ) : bool
s this
Résultat bool