C# 클래스 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.
파일 보기 프로젝트 열기: pushtechnology/diffusion-examples

공개 메소드들

메소드 설명
ClientUsingPings ( ) : PushTechnology.ClientInterface.Client.Factories
Close ( ) : void

Close the session.

Ping ( string context, IPingContextCallback callback ) : void

Ping the server.

메소드 상세

ClientUsingPings() 공개 메소드

public ClientUsingPings ( ) : PushTechnology.ClientInterface.Client.Factories
리턴 PushTechnology.ClientInterface.Client.Factories

Close() 공개 메소드

Close the session.
public Close ( ) : void
리턴 void

Ping() 공개 메소드

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.
리턴 void