static ConfigurationProperty redirectUrlProp;
static ConfigurationPropertyCollection properties;
+ static ConfigurationElementProperty elementProperty;
+
static PassportAuthentication ()
{
redirectUrlProp = new ConfigurationProperty ("redirectUrl", typeof (string), "internal");
properties = new ConfigurationPropertyCollection ();
properties.Add (redirectUrlProp);
+
+ elementProperty = new ConfigurationElementProperty (new CallbackValidator (typeof (PassportAuthentication), ValidateElement));
+ }
+
+ static void ValidateElement (object o)
+ {
+ /* XXX do some sort of element validation here? */
}
-#if notyet
protected override ConfigurationElementProperty ElementProperty {
- get { }
+ get { return elementProperty; }
}
-#endif
- [StringValidator]
+ [StringValidator] /* why is this here? */
[ConfigurationProperty ("redirectUrl", DefaultValue = "internal")]
public string RedirectUrl {
get { return (string) base [redirectUrlProp];}