return new AuthorizationRule (elementName == "allow" ? AuthorizationRuleAction.Allow : AuthorizationRuleAction.Deny);
}
- [MonoTODO]
protected override ConfigurationElement CreateNewElement ()
{
return new AuthorizationRule (AuthorizationRuleAction.Allow);
+2005-11-25 Chris Toshok <toshok@ximian.com>
+
+ * AuthorizationRuleCollection.cs (CreateNewElement): remove
+ MonoTODO.
+
+ * CompilationSection.cs (GetRuntimeObject): add comment to TODO.
+
+ * ProfileGroupSettings.cs: reformat some things.
+
+ * FormsAuthenticationUser.cs (Name): remove MonoTODO.
+
+ * WebPartsSection.cs (GetRuntimeObject): change TODO comment.
+
+ * ProfilePropertySettings.cs: add internal argument-less ctor.
+
+ * IdentitySection.cs (GetRuntimeObject): return this.
+
+ * ProfilePropertySettingsCollection.cs: implement much of the
+ TODO's.
+
+ * WebControlsSection.cs (GetRuntimeObject): implement.
+
+ * SqlCacheDependencyDatabaseCollection.cs (GetElementKey):
+ implement.
+ (GetKey): implement.
+
2005-11-24 Chris Toshok <toshok@ximian.com>
* AssemblyInfo.cs: move this here from System.Web.Configuration,
base.PostDeserialize ();
}
- [MonoTODO]
+ [MonoTODO ("why override this?")]
protected override object GetRuntimeObject ()
{
return this;
this.Password = password;
}
- [MonoTODO ("enable type converter")]
[StringValidator]
[TypeConverter (typeof (LowerCaseStringConverter))]
[ConfigurationProperty ("name", DefaultValue = "", Options = ConfigurationPropertyOptions.IsRequired | ConfigurationPropertyOptions.IsKey)]
properties.Add (userNameProp);
}
- [MonoTODO]
+ [MonoTODO ("why override this?")]
protected override object GetRuntimeObject ()
{
- throw new NotImplementedException ();
+ return this;
}
[MonoTODO]
[ConfigurationProperty ("name", Options = ConfigurationPropertyOptions.IsRequired | ConfigurationPropertyOptions.IsKey)]
public string Name {
- get {
- return (string)base [nameProp];
- }
- internal set{
- base [nameProp] = value;
- }
+ get { return (string)base [nameProp]; }
+ internal set{ base [nameProp] = value; }
}
[ConfigurationProperty ("", Options = ConfigurationPropertyOptions.IsDefaultCollection)]
public ProfilePropertySettingsCollection PropertySettings {
- get {
- return (ProfilePropertySettingsCollection) base [propertySettingsProp];
- }
+ get { return (ProfilePropertySettingsCollection) base [propertySettingsProp]; }
}
protected override ConfigurationPropertyCollection Properties {
- get {
- return properties;
- }
+ get { return properties; }
}
}
}
properties.Add (typeProp);
}
+ internal ProfilePropertySettings ()
+ {
+ }
+
public ProfilePropertySettings (string name)
{
this.Name = name;
{
}
- [MonoTODO]
public void Add (ProfilePropertySettings propertySettings)
{
- throw new NotImplementedException ();
+ BaseAdd (propertySettings);
}
- [MonoTODO]
public void Clear ()
{
- throw new NotImplementedException ();
+ BaseClear ();
}
- [MonoTODO]
protected override ConfigurationElement CreateNewElement ()
{
- throw new NotImplementedException ();
+ return new ProfilePropertySettings ();
}
- [MonoTODO]
public ProfilePropertySettings Get (int index)
{
- throw new NotImplementedException ();
+ return (ProfilePropertySettings) BaseGet (index);
}
- [MonoTODO]
public ProfilePropertySettings Get (string name)
{
- throw new NotImplementedException ();
+ return (ProfilePropertySettings) BaseGet (name);
}
- [MonoTODO]
protected override object GetElementKey (ConfigurationElement element)
{
- throw new NotImplementedException ();
+ return ((ProfilePropertySettings)element).Name;
}
- [MonoTODO]
public string GetKey (int index)
{
- throw new NotImplementedException ();
+ ProfilePropertySettings s = Get (index);
+ if (s == null)
+ return null;
+
+ return s.Name;
}
[MonoTODO]
throw new NotImplementedException ();
}
- [MonoTODO]
public void Remove (string name)
{
- throw new NotImplementedException ();
+ BaseRemove (name);
}
- [MonoTODO]
public void RemoveAt (int index)
{
- throw new NotImplementedException ();
+ BaseRemoveAt (index);
}
[MonoTODO]
}
public ProfilePropertySettings this[int index] {
- get { return (ProfilePropertySettings) BaseGet (index); }
- set { if (BaseGet (index) != null) BaseRemoveAt (index); BaseAdd (index, value); }
+ get { return Get (index); }
+ set { if (Get (index) != null) BaseRemoveAt (index); BaseAdd (index, value); }
}
- [MonoTODO]
public new ProfilePropertySettings this[string name] {
- get {
- throw new NotImplementedException ();
- }
+ get { return Get (name); }
}
- [MonoTODO]
protected override bool ThrowOnDuplicate {
- get {
- throw new NotImplementedException ();
- }
+ get { return false; }
}
}
return new SqlCacheDependencyDatabase ();
}
- [MonoTODO]
protected override object GetElementKey (ConfigurationElement element)
{
- throw new NotImplementedException ();
+ return ((SqlCacheDependencyDatabase)element).Name;
}
- [MonoTODO]
public string GetKey (int index)
{
- throw new NotImplementedException ();
+ SqlCacheDependencyDatabase db = Get (index);
+ if (db == null)
+ return null;
+ return db.Name;
}
public void Remove (string name)
//
using System;
+using System.Collections;
using System.ComponentModel;
using System.Configuration;
properties.Add (clientScriptsLocationProp);
}
- [MonoTODO]
protected override object GetRuntimeObject ()
{
- return this;
+ Hashtable ht = new Hashtable ();
+
+ ht.Add ("clientScriptsLocation", ClientScriptsLocation);
+
+ return ht;
}
[StringValidator (MinLength = 1)]
properties.Add (transformersProp);
}
- [MonoTODO]
+ [MonoTODO ("why override this?")]
protected override object GetRuntimeObject ()
{
return this;