void OnComplete(ClientLib.Client sender, Http.HttpConnection connection, Http.Response httpResponse, Api.Responses.ResponseBase apiResponse, TimeSpan duration) { Api.Responses.Pong resp = (Api.Responses.Pong)apiResponse; WriteLine("Server execution time: " + resp.Duration.Milliseconds.ToString() + "ms."); WriteLine("Round-trip completed in " + (DateTime.Now - _start).Milliseconds.ToString() + "ms."); WriteLine("JSON response:\r\n" + resp.FullContent.ToString()); }
public Authenticate(FrmMain window, ClientLib.Client client) : base(window, client) { }
void OnDisconnect(ClientLib.Client sender, Http.HttpConnection connection, TimeSpan duration) { WriteLine("Connection closed."); }
void OnError(ClientLib.Client sender, Http.HttpConnection connection, string message, Exception exception, TimeSpan duration) { WriteLine("Error - Message: " + message); }
void OnProgress(ClientLib.Client sender, Http.HttpConnection connection, Tcp.DirectionType direction, int packetSize, TimeSpan duration, decimal requestPercentSent, decimal responsePercentComplete) { WriteLine("Progress - Sent: " + requestPercentSent.ToString() + " Received: " + responsePercentComplete.ToString()); }
void OnTimeout(ClientLib.Client sender, Http.HttpConnection connection, TimeSpan duration) { WriteLine("Timeout occurred."); }
public Ping(FrmMain window, ClientLib.Client client) : base(window, client) { }
public TestBase(FrmMain window, ClientLib.Client client) { _window = window; _client = client; }