override protected void Handler(PersistentData data) { if (m_stream.AcquireLock()) { try { base.Handler(data); } finally { m_stream.ReleaseLock(); } } }
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()); } }
virtual protected void ForcedWrite(PersistentData data) { CallHandler(data); }
abstract protected void Handler(PersistentData data);