Exemplo n.º 1
0
 /// <summary>
 ///   The on response received.
 /// </summary>
 /// <param name = "client">
 ///   The client.
 /// </param>
 /// <param name = "response">
 ///   The response.
 /// </param>
 private static void OnResponseReceived(TestClient client, OperationResponse response)
 {
     Action<TestClient, OperationResponse> received = ResponseReceived;
     if (received != null)
     {
         received(client, response);
     }
 }
Exemplo n.º 2
0
 /// <summary>
 ///   invokes <see cref = "Disconnected" />.
 /// </summary>
 /// <param name = "client">
 ///   The client.
 /// </param>
 private static void OnDisonnected(TestClient client)
 {
     Action<TestClient> handler = Disonnected;
     if (handler != null)
     {
         handler(client);
     }
 }
Exemplo n.º 3
0
 /// <summary>
 ///   The on event received.
 /// </summary>
 /// <param name = "client">
 ///   The client.
 /// </param>
 /// <param name = "data">
 ///   The data.
 /// </param>
 private static void OnEventReceived(TestClient client, EventData data)
 {
     Action<TestClient, EventData> received = EventReceived;
     if (received != null)
     {
         received(client, data);
     }
 }
Exemplo n.º 4
0
 /// <summary>
 ///   The on connected.
 /// </summary>
 /// <param name = "client">
 ///   The client.
 /// </param>
 private static void OnConnected(TestClient client)
 {
     Action<TestClient> connected = Connected;
     if (connected != null)
     {
         connected(client);
     }
 }