protected override ConfigurationElement CreateNewElement ()
{
- return new OutputCacheProfile ("");
+ return new OutputCacheProfile ();
}
protected override object GetElementKey (ConfigurationElement element)
BaseRemoveAt (index);
}
- [MonoTODO]
public void Set (OutputCacheProfile user)
{
- throw new NotImplementedException ();
+ OutputCacheProfile existing = Get (user.Name);
+
+ if (existing == null) {
+ Add (user);
+ }
+ else {
+ int index = BaseIndexOf (existing);
+ RemoveAt (index);
+ BaseAdd (index, user);
+ }
}
- [MonoTODO]
- public String[] AllKeys {
- get { throw new NotImplementedException (); }
+ public string[] AllKeys {
+ get {
+ string[] keys = new string[Count];
+ for (int i = 0; i < Count; i ++)
+ keys[i] = this[i].Name;
+ return keys;
+ }
}
public OutputCacheProfile this [int index] {