コード例 #1
0
        public void RaiseConnectionLostEventTest()
        {
            ClientCall call = null; // TODO: Initialize to an appropriate value

            RemoteExecutionController.RaiseConnectionLostEvent(call);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }
コード例 #2
0
 /// <summary>
 /// Execute the given call on the client
 /// </summary>
 /// <param name="remoteCall">The details of the call</param>
 /// <param name="raiseEventOnError">if false, no event will be raised if there is a communications problem</param>
 public static void ExecuteOnClient(ClientCall remoteCall, bool raiseEventOnError = true)
 {
     if (remoteCall == null)
     {
         throw new ArgumentNullException("remoteCall");
     }
     if (!SseHelper.SendMessage(remoteCall, raiseEventOnError) && !raiseEventOnError)
     {
         //inform the user who made the call
         RemoteExecutionController.RaiseConnectionLostEvent(remoteCall);
     }
 }