C# Class Examples.ClientUsingPings

This is a simple client example that pings the server and prints out the round-trip time. This uses the IPings feature only.
Afficher le fichier Open project: pushtechnology/diffusion-examples

Méthodes publiques

Méthode Description
ClientUsingPings ( ) : PushTechnology.ClientInterface.Client.Factories
Close ( ) : void

Close the session.

Ping ( string context, IPingContextCallback callback ) : void

Ping the server.

Method Details

ClientUsingPings() public méthode

public ClientUsingPings ( ) : PushTechnology.ClientInterface.Client.Factories
Résultat PushTechnology.ClientInterface.Client.Factories

Close() public méthode

Close the session.
public Close ( ) : void
Résultat void

Ping() public méthode

Ping the server.
public Ping ( string context, IPingContextCallback callback ) : void
context string The string to log with round-trip time.
callback IPingContextCallback Used to return the ping reply.
Résultat void