コード例 #1
0
 override protected void Handler(PersistentData data)
 {
     if (m_stream.AcquireLock())
     {
         try
         {
             base.Handler(data);
         }
         finally
         {
             m_stream.ReleaseLock();
         }
     }
 }
コード例 #2
0
        protected string RenderDataEvent(PersistentData data)
        {
            // Create the render writer on first use
            if (m_renderWriter == null)
            {
                m_renderWriter = new ReusableStringWriter(System.Globalization.CultureInfo.InvariantCulture);
            }

            lock (m_renderWriter)
            {
                m_renderWriter.Reset(c_renderBufferMaxCapacity, c_renderBufferSize);

                RenderDataEvent(m_renderWriter, data);
                return(m_renderWriter.ToString());
            }
        }
コード例 #3
0
 virtual protected void ForcedWrite(PersistentData data)
 {
     CallHandler(data);
 }
コード例 #4
0
 abstract protected void Handler(PersistentData data);