 | ListenerStartAsync Method |
Initializes a new instance of the Listener
Namespace:
SMTPRouter
Assembly:
SMTPRouter (in SMTPRouter.dll) Version: 1.0.0.4
Syntaxpublic Task StartAsync(
CancellationToken cancellationToken
)
Public Function StartAsync (
cancellationToken As CancellationToken
) As Task
Dim instance As Listener
Dim cancellationToken As CancellationToken
Dim returnValue As Task
returnValue = instance.StartAsync(cancellationToken)
public:
Task^ StartAsync(
CancellationToken cancellationToken
)
Parameters
- cancellationToken
- Type: System.ThreadingCancellationToken
The Cancellation Token to stop a transaction
Return Value
Type:
TaskAn awaitable
Task with the listener to Smtp Messages
See Also