Diffusion .NET Client Library
6.1.5
|
This feature provides a client session with the ability to test its connection to the server. More...
Public Member Functions | |
Task< IPingDetails > | PingServerAsync () |
Sends a ping request to the server. More... | |
Task< IPingDetails > | PingServerAsync (CancellationToken cancellationToken) |
Sends a ping request to the server. More... | |
void | PingServer (IPingCallback callback) |
Sends a ping request to the server. More... | |
void | PingServer< TContext > (TContext context, IPingContextCallback< TContext > callback) |
Sends a ping request to the server. More... | |
Additional Inherited Members | |
Properties inherited from PushTechnology.ClientInterface.Client.Features.IFeature | |
ISession | Session [get] |
Returns the session that the feature is associated with. More... | |
This feature provides a client session with the ability to test its connection to the server.
The main purpose of a ping is to test, at a very basic level, the current network conditions that exist between the client session and the server it is connected to. The ping response includes the time taken to make a round-trip call to the server.
Access Control:
There are no permissions requirements associated with this feature.
Since 5.0
This example shows how to access the pings feature from a Session.ISession and ping the server.
void PushTechnology.ClientInterface.Client.Features.IPings.PingServer | ( | IPingCallback | callback | ) |
Sends a ping request to the server.
callback | The callback for the response to this ping operation. |
ArgumentNullException | The callback is null . |
void PushTechnology.ClientInterface.Client.Features.IPings.PingServer< TContext > | ( | TContext | context, |
IPingContextCallback< TContext > | callback | ||
) |
Sends a ping request to the server.
TContext | The context type. |
context | The context object that will be passed to the callback. |
callback | The callback for the response to this ping operation. |
ArgumentNullException | The callback is null . |
Task<IPingDetails> PushTechnology.ClientInterface.Client.Features.IPings.PingServerAsync | ( | ) |
Sends a ping request to the server.
Since 6.0
Session.SessionClosedException | The session is closed. Thrown by the returned task. |
Task<IPingDetails> PushTechnology.ClientInterface.Client.Features.IPings.PingServerAsync | ( | CancellationToken | cancellationToken | ) |
Sends a ping request to the server.
Since 6.0
cancellationToken | The cancellation token used to cancel the current operation. |
Session.SessionClosedException | The session is closed. Thrown by the returned task. |
Pinging the server with a CancellationToken