Beispiel #1
0
 protected IEnumerable<XElement> getCommonData(WebContext context)
 {
     return new XElement[] {
         new XElement("handlerName", this.GetType().FullName),
         new XElement("title", Config.instance.AppInfo),
         new XElement("timestamp", DateTime.Now.Ticks.ToString()),
         context.userSettings.skin.exportToXml(),
         context.userSettings.modernSkin.exportToXml(),
         context.userSettings.machichara.exportToXml(),
         context.exportSession(),
         context.exportRequestParameters(),
     };
 }
Beispiel #2
0
 protected virtual IEnumerable<XElement> getCommonData(WebContext context)
 {
     return new XElement[] {
         new XElement(
             "url",
             new XElement("scheme", context.httprequest.Url.Scheme),
             new XElement("host", context.httprequest.Url.Host),
             new XElement("port", context.httprequest.Url.Port)
         ),
         new XElement("handlerName", this.GetType().FullName),
         new XElement("title", Config.instance.AppInfo),
         new XElement("current", DateTime.Now.ToXml()),
         context.exportSession(),
         context.userSettings.skin.exportToXml(),
         context.userSettings.modernSkin.exportToXml(),
         context.userSettings.machichara.exportToXml(),
         context.userSettings.exportUploadSettingsToXml(context),
         context.exportRequestParameters(),
     };
 }