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.
显示文件 Open project: pushtechnology/diffusion-examples

Public Methods

Method Description
ClientUsingPings ( ) : PushTechnology.ClientInterface.Client.Factories
Close ( ) : void

Close the session.

Ping ( string context, IPingContextCallback callback ) : void

Ping the server.

Method Details

ClientUsingPings() public method

public ClientUsingPings ( ) : PushTechnology.ClientInterface.Client.Factories
return PushTechnology.ClientInterface.Client.Factories

Close() public method

Close the session.
public Close ( ) : void
return void

Ping() public method

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.
return void