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);
     }
 }
 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);
     }
 }