コード例 #1
0
 public TokenReplace(bool escapeApostrophe)
 {
     _escapeApostrophe = escapeApostrophe;
     if (HttpContext.Current != null)
     {
         var request = HttpContext.Current.Request;
         PropertySource["querystring"] = new FilteredNameValueCollectionPropertyAccess(request.QueryString);
         PropertySource["form"]        = new FilteredNameValueCollectionPropertyAccess(request.Form);
         PropertySource["server"]      = new FilteredNameValueCollectionPropertyAccess(request.ServerVariables);
     }
 }
コード例 #2
0
 public TokenReplace(bool escapeApostrophe)
 {
     _escapeApostrophe = escapeApostrophe;
     if (HttpContext.Current != null)
     {
         var request = HttpContext.Current.Request;
         PropertySource["querystring"] = new FilteredNameValueCollectionPropertyAccess(request.QueryString);
         PropertySource["form"] = new FilteredNameValueCollectionPropertyAccess(request.Form);
         PropertySource["server"] = new FilteredNameValueCollectionPropertyAccess(request.ServerVariables);
     }
 }