SyslogClient.ConnectAsync Method
Namespace: Rebex.Net
Assembly: Rebex.Syslog.dll (version 7.0.9119)
ConnectAsync(String, Int32, SyslogTransportProtocol)
Connects the client to the specified syslog server.
Declaration
public Task ConnectAsync(string serverName, int port, SyslogTransportProtocol protocol)
Parameters
Type | Name | Description |
---|---|---|
String | serverName | The server address - either a hostname or a dotted string address. |
Int32 | port | The server port (e.g. 514). |
SyslogTransportProtocol | protocol | The transport layer protocol to use. |
Returns
Type | Description |
---|---|
Task |