Пример #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);
            }
        }
Пример #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);
            }
        }
Пример #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);
            }
        }
Пример #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);
            }
        }
Пример #5
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);
     }
 }
Пример #6
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);
     }
 }
Пример #7
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);
     }
 }
Пример #8
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);
     }
 }