 | AsyncSyslogSenderBaseConnectAsync Method (String, Int32) |
Connects to the remote host.
Namespace: SyslogNet.Client.TransportAssembly: SyslogNet.Client.Transport (in SyslogNet.Client.Transport.dll) Version: 0.4.0.0
Syntaxprotected abstract Task ConnectAsync(
string hostname,
int port
)
Protected MustOverride Function ConnectAsync (
hostname As String,
port As Integer
) As Task
protected:
virtual Task^ ConnectAsync(
String^ hostname,
int port
) abstract
abstract ConnectAsync :
hostname : string *
port : int -> Task
Parameters
- hostname
- Type: SystemString
Host name. - port
- Type: SystemInt32
Port number.
Return Value
Type:
TaskAsynchronous task.
See Also