/// <summary>
        /// Send the specified response to the client. The client call will
        /// be blocked on the same.
        /// </summary>
        /// <param name="callId">Call id on the client.</param>
        /// <param name="response">Response to send.</param>
        internal void SendResponseToClient(long callId, object response)
        {
            RemoteDataObject message =
                RemotingEncoder.GenerateRunspacePoolOperationResponse(_clientRunspacePoolId, response, callId);

            SendDataAsync(message);
        }
Пример #2
0
 internal void SendResponseToClient(long callId, object response) => this.SendDataAsync(RemotingEncoder.GenerateRunspacePoolOperationResponse(this.clientRunspacePoolId, response, callId));