C# Class JustEat.StatsD.StatsDUdpClient

Inheritance: IStatsDUdpClient
Mostra file Open project: justeat/JustEat.StatsD Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

GetUdpClient ( ) : UdpClient
Send ( string metric ) : bool
StatsDUdpClient ( int endpointCacheDuration, string hostNameOrAddress, int port ) : System
StatsDUdpClient ( string hostNameOrAddress, int port ) : System

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Private Methods

Method Description
GetIPEndPoint ( ) : IPEndPoint
Send ( IEnumerable metrics ) : bool
StatsDUdpClient ( IDnsEndpointMapper endpointMapper, string hostNameOrAddress, int port ) : System

Method Details

Dispose() public method

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
return void

Dispose() protected method

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
protected Dispose ( bool disposing ) : void
disposing bool true if resources should be disposed, false if not.
return void

GetUdpClient() public method

public GetUdpClient ( ) : UdpClient
return System.Net.Sockets.UdpClient

Send() public method

public Send ( string metric ) : bool
metric string
return bool

StatsDUdpClient() public method

public StatsDUdpClient ( int endpointCacheDuration, string hostNameOrAddress, int port ) : System
endpointCacheDuration int
hostNameOrAddress string
port int
return System

StatsDUdpClient() public method

public StatsDUdpClient ( string hostNameOrAddress, int port ) : System
hostNameOrAddress string
port int
return System