예제 #1
0
 public ResourceDocument(string resourcePath, IPageFactory pageFactory)
 {
     this.ResourcePath = resourcePath;
     string s = pageFactory.FindPageContent(resourcePath);
     Stopwatch stopwatch = new Stopwatch();
     stopwatch.Start();
     this.xpath = new XPathDocument(new StringReader(s));
     stopwatch.Stop();
     LoggerService.Debug(">>ResourceDocument ({0})", new object[] { stopwatch.Elapsed.TotalMilliseconds });
 }