示例#1
0
        public virtual IHistoryFetcher Create()
        {
            // TODO: at the moment this just returns default but eventually will return different history fetchers based on config
            // e.g different ones for
            // -SSRS 2005
            // -SSRS 2008
            // -log data extracted somewhere else as recommended by http://technet.microsoft.com/en-us/library/ms155836(v=sql.100).aspx
            // -log data extracted by Scrubs http://scrubs.codeplex.com/
            IHistoryFetcher ret = null;

            switch (this.ReportHistoryFormat)
            {
            case "2008":
                ret = new CrcReportHistoryFetcherDefault();
                break;

            case "2005":
                ret = new CrcReportHistoryFetcher2005();
                break;

            default:
                throw new ApplicationException(string.Format("Unknown crisscross.ReportHistoryFormat of {0} specified",
                                                             this.ReportHistoryFormat));
                break;
            }
            return(ret);
        }
        public virtual IHistoryFetcher Create()
        {
            // TODO: at the moment this just returns default but eventually will return different history fetchers based on config
            // e.g different ones for
            // -SSRS 2005
            // -SSRS 2008
            // -log data extracted somewhere else as recommended by http://technet.microsoft.com/en-us/library/ms155836(v=sql.100).aspx
            // -log data extracted by Scrubs http://scrubs.codeplex.com/
            IHistoryFetcher ret = null;
            switch (this.ReportHistoryFormat)
            {
                case "2008":
                    ret = new CrcReportHistoryFetcherDefault();
                    break;

                case "2005":
                    ret = new CrcReportHistoryFetcher2005();
                    break;

                default:
                    throw new ApplicationException(string.Format("Unknown crisscross.ReportHistoryFormat of {0} specified",
                        this.ReportHistoryFormat));
                    break;

            }
            return ret;
        }