Exemple #1
0
        /// <summary>
        ///   The on response received.
        /// </summary>
        /// <param name = "client">
        ///   The client.
        /// </param>
        /// <param name = "response">
        ///   The response.
        /// </param>
        private static void OnResponseReceived(OnlineNUnitClient client, OperationResponse response)
        {
            Action <OnlineNUnitClient, OperationResponse> received = ResponseReceived;

            if (received != null)
            {
                received(client, response);
            }
        }
Exemple #2
0
        /// <summary>
        ///   The on event received.
        /// </summary>
        /// <param name = "client">
        ///   The client.
        /// </param>
        /// <param name = "data">
        ///   The data.
        /// </param>
        private static void OnEventReceived(OnlineNUnitClient client, EventData data)
        {
            Action <OnlineNUnitClient, EventData> received = EventReceived;

            if (received != null)
            {
                received(client, data);
            }
        }
Exemple #3
0
        /// <summary>
        ///   invokes <see cref = "Disconnected" />.
        /// </summary>
        /// <param name = "client">
        ///   The client.
        /// </param>
        private static void OnDisonnected(OnlineNUnitClient client)
        {
            Action <OnlineNUnitClient> handler = Disconnected;

            if (handler != null)
            {
                handler(client);
            }
        }
Exemple #4
0
        /// <summary>
        ///   The on connected.
        /// </summary>
        /// <param name = "client">
        ///   The client.
        /// </param>
        private static void OnConnected(OnlineNUnitClient client)
        {
            Action <OnlineNUnitClient> connected = Connected;

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