示例#1
0
 public void SetExporter(NoticeReportExporter exporter)
 {
     this.m_Exporter = exporter;
 }
示例#2
0
 public NoticeReportGenerator()
 {
     this.m_ReportGenerationSync = new object();
     this.m_StateSync = new object();
     this.m_UsePreCompileTemplate = true;
     this.m_NoticeRendererLock = new object();
     this.InitializeDelegates();
     this.m_Adapter = null;
     this.m_FetchOnly = false;
     this.m_ForceGenerate = false;
     this.m_Exporter = null;
     this.m_Templates = null;
     this.m_RenderedNoticeQueue = new ConcurrentQueue<NoticeRenderedNotice>();
     this.m_SaveRenderedNoticeQueue = new ConcurrentQueue<NoticeRenderedNotice>();
     this.m_ThreadExceptions = new ConcurrentQueue<System.Exception>();
     this.m_NoticeCache = new System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<CachedNoticeInfo>>();
     this.m_RenderingNoticeCount = 0;
     this.m_ExportingNoticeCount = 0;
     this.m_RetreivedNoticeBlocksCount = 0;
     this.m_IsBusy = false;
     this.m_IsCancelled = false;
     this.m_NoticeReports = new System.Collections.Generic.List<NoticeReport>();
     this.m_RenderingNoticeQueue = new ConcurrentQueue<RenderingNotice>();
     this.m_TemplateCache = new System.Collections.Generic.Dictionary<long, byte[]>();
     this.m_ExportCacheDirectoryName = "Cache_" + System.Guid.NewGuid().ToString().Replace("-", "");
 }
示例#3
0
 private void Reset()
 {
     foreach (NoticeReport report in this.m_NoticeReports)
     {
         report.Dispose();
     }
     this.m_NoticeReports.Clear();
     this.m_NoticeCache.Clear();
     this.m_RenderingNoticeQueue.Clear();
     this.m_RenderedNoticeQueue.Clear();
     this.m_SaveRenderedNoticeQueue.Clear();
     this.m_ThreadExceptions.Clear();
     this.m_Exporter = null;
     this.m_RenderingNoticeCount = 0;
     this.m_ExportingNoticeCount = 0;
     this.m_TotalRendered = 0;
     this.m_ProcessedNoticeCount = 0L;
     this.IsBusy = false;
     this.m_IsCancelled = false;
     if (m_IsolatedNoticeRenderer != null)
     {
         m_IsolatedNoticeRenderer.Dispose();
     }
 }