/// <summary>
        /// Get a list of strings and process each string by itself.
        /// If one of the strings causes an error we return the stack to its previous state and send an error message
        /// to the client.
        /// </summary>
        /// <param name="request">A list of strings' '.</param>
        public void ProcessRequest(List <string> request)
        {
            Stack <double> temp = new Stack <double>(data.GetData());

            foreach (string req in request)
            {
                ProcessSingleRequest(req);
                if (isError)
                {
                    data.SetData(temp);
                    isError = false;
                    SendStack();
                    return;
                }
            }
            SendStack();
        }
Ejemplo n.º 2
0
 public void Use(Func <Header, Header> useHeader)
 {
     cachedHeaderHolder.SetData(useHeader(GetHeader()));
 }
Ejemplo n.º 3
0
 protected void DispatchDataChanged()
 {
     m_data.SetData(m_holder);
 }