HybridConnectionListener.CloseAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
CloseAsync() |
Closes the HybridConnectionListener using the default timeout. Unless specified in the connection string the default is 1 minute. |
CloseAsync(CancellationToken) |
Closes the HybridConnectionListener using the provided CancellationToken. |
CloseAsync(TimeSpan) |
Closes the HybridConnectionListener using the provided timeout. |
CloseAsync()
Closes the HybridConnectionListener using the default timeout. Unless specified in the connection string the default is 1 minute.
public System.Threading.Tasks.Task CloseAsync ();
member this.CloseAsync : unit -> System.Threading.Tasks.Task
Public Function CloseAsync () As Task
Returns
Applies to
CloseAsync(CancellationToken)
Closes the HybridConnectionListener using the provided CancellationToken.
public System.Threading.Tasks.Task CloseAsync (System.Threading.CancellationToken cancellationToken);
member this.CloseAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function CloseAsync (cancellationToken As CancellationToken) As Task
Parameters
- cancellationToken
- CancellationToken
A cancellation token to observe.
Returns
Applies to
CloseAsync(TimeSpan)
Closes the HybridConnectionListener using the provided timeout.
public System.Threading.Tasks.Task CloseAsync (TimeSpan timeout);
member this.CloseAsync : TimeSpan -> System.Threading.Tasks.Task
Public Function CloseAsync (timeout As TimeSpan) As Task
Parameters
- timeout
- TimeSpan
A timeout to observe.
Returns
Applies to
Azure SDK for .NET