protected override void Flush_Data_Frames( long current_time ) { base.Flush_Data_Frames( current_time ); if ( !m_CurrentPersistenceFrame.Empty ) { m_PersistenceInterface.Send( m_CurrentPersistenceFrame ); m_CurrentPersistenceFrame = null; } }
// Private interface private void Pre_Process_Incoming_Frame( CToPersistenceFrame frame ) { foreach ( var request in frame.Requests ) { EPersistenceRequestType request_type = request.RequestType; List< CPersistenceRequest > request_list = null; if ( !SortedRequestLists.TryGetValue( request_type, out request_list ) ) { request_list = new List< CPersistenceRequest >(); SortedRequestLists.Add( request_type, request_list ); } request_list.Add( request ); } }
protected override void Build_Thread_Frames() { base.Build_Thread_Frames(); if ( m_CurrentPersistenceFrame == null ) { m_CurrentPersistenceFrame = new CToPersistenceFrame(); } }