C# Class gelf4net.Extensions

Mostrar archivo Open project: jjchiw/gelf4net

Public Methods

Method 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 method

public static FromUnixTimestamp ( this d ) : System.DateTime
d this
return System.DateTime

GzipMessage() public static method

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

IsNumeric() public static method

public static IsNumeric ( this type ) : bool
type this
return bool

ToDictionary() public static method

public static ToDictionary ( this values ) : IDictionary
values this
return IDictionary

ToJson() public static method

public static ToJson ( this s ) : object
s this
return object

ToUnixTimestamp() public static method

public static ToUnixTimestamp ( this d ) : double
d this
return double

TruncateMessage() public static method

Truncate the message
public static TruncateMessage ( this message, int length ) : string
message this
length int
return string

ValidateJSON() public static method

public static ValidateJSON ( this s ) : bool
s this
return bool