예제 #1
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("-", "");
 }
예제 #2
0
 public NoticeReportGenerator(NoticeAdapter adapter, System.Collections.Generic.IList<NoticeNoticeTemplate> templates)
     : this()
 {
     this.m_Adapter = adapter;
     this.m_Templates = templates;
 }