Imported Upstream version 3.6.0

Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
This commit is contained in:
Jo Shields
2014-08-13 10:39:27 +01:00
commit a575963da9
50588 changed files with 8155799 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
2009-08-17 Marek Habersack <mhabersack@novell.com>
* ScriptingJsonSerializationSection.cs: MaxJsonLength default
value is 2097152 for .NET 3.5+

View File

@@ -0,0 +1,61 @@
//
// Converter.cs
//
// Author:
// Igor Zelmanovich <igorz@mainsoft.com>
//
// (C) 2007 Mainsoft, Inc. http://www.mainsoft.com
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Collections.Generic;
using System.Text;
using System.Configuration;
namespace System.Web.Configuration
{
public class Converter : ConfigurationElement
{
[StringValidator (MinLength = 1)]
[ConfigurationProperty ("name", IsRequired = true, IsKey = true, DefaultValue = "")]
public string Name {
get {
return (string) this ["name"];
}
set {
this ["name"] = value;
}
}
[StringValidator (MinLength = 1)]
[ConfigurationProperty ("type", IsRequired = true, DefaultValue = "")]
public string Type {
get {
return (string) this ["type"];
}
set {
this ["type"] = value;
}
}
}
}

View File

@@ -0,0 +1,74 @@
//
// ConvertersCollection.cs
//
// Author:
// Igor Zelmanovich <igorz@mainsoft.com>
//
// (C) 2007 Mainsoft, Inc. http://www.mainsoft.com
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Collections.Generic;
using System.Text;
using System.Configuration;
namespace System.Web.Configuration
{
[ConfigurationCollection (typeof (Converter))]
public class ConvertersCollection : ConfigurationElementCollection
{
public Converter this [int index] {
get {
return (Converter) BaseGet (index);
}
set {
if (BaseGet (index) != null) {
BaseRemoveAt (index);
}
BaseAdd (index, value);
}
}
public void Add (Converter converter) {
BaseAdd (converter);
}
public void Clear () {
BaseClear ();
}
protected override ConfigurationElement CreateNewElement () {
return new Converter ();
}
protected override object GetElementKey (ConfigurationElement element) {
return ((Converter) element).Name;
}
public void Remove (Converter converter) {
if (BaseIndexOf (converter) >= 0)
BaseRemove (converter.Name);
}
}
}

View File

@@ -0,0 +1,59 @@
//
// ScriptingAuthenticationServiceSection.cs
//
// Author:
// Igor Zelmanovich <igorz@mainsoft.com>
//
// (C) 2007 Mainsoft, Inc. http://www.mainsoft.com
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Collections.Generic;
using System.Text;
using System.Configuration;
namespace System.Web.Configuration
{
public sealed class ScriptingAuthenticationServiceSection : ConfigurationSection
{
[ConfigurationPropertyAttribute ("enabled", DefaultValue = false)]
public bool Enabled {
get {
return (bool) this ["enabled"];
}
set {
this ["enabled"] = value;
}
}
[ConfigurationPropertyAttribute ("requireSSL", DefaultValue = false)]
public bool RequireSSL {
get {
return (bool) this ["requireSSL"];
}
set {
this ["requireSSL"] = value;
}
}
}
}

View File

@@ -0,0 +1,70 @@
//
// ScriptingJsonSerializationSection.cs
//
// Author:
// Igor Zelmanovich <igorz@mainsoft.com>
//
// (C) 2007 Mainsoft, Inc. http://www.mainsoft.com
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Collections.Generic;
using System.Text;
using System.Configuration;
namespace System.Web.Configuration
{
public sealed class ScriptingJsonSerializationSection : ConfigurationSection
{
[ConfigurationPropertyAttribute ("converters", IsKey = true)]
public ConvertersCollection Converters {
get {
return (ConvertersCollection) base ["converters"];
}
}
#if NET_3_5
[ConfigurationPropertyAttribute ("maxJsonLength", DefaultValue = 2097152)]
#else
[ConfigurationPropertyAttribute ("maxJsonLength", DefaultValue = 102400)]
#endif
public int MaxJsonLength {
get {
return (int) this ["maxJsonLength"];
}
set {
this ["maxJsonLength"] = value;
}
}
[ConfigurationPropertyAttribute ("recursionLimit", DefaultValue = 100)]
public int RecursionLimit {
get {
return (int) this ["recursionLimit"];
}
set {
this ["recursionLimit"] = value;
}
}
}
}

View File

@@ -0,0 +1,97 @@
//
// ScriptingProfileServiceSection.cs
//
// Author:
// Igor Zelmanovich <igorz@mainsoft.com>
//
// (C) 2007 Mainsoft, Inc. http://www.mainsoft.com
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Collections.Generic;
using System.Text;
using System.Configuration;
using System.ComponentModel;
using System.Web.UI.WebControls;
namespace System.Web.Configuration
{
public sealed class ScriptingProfileServiceSection : ConfigurationSection
{
[ConfigurationPropertyAttribute ("enabled", DefaultValue = false)]
public bool Enabled {
get {
return (bool) this ["enabled"];
}
set {
this ["enabled"] = value;
}
}
[ConfigurationPropertyAttribute ("readAccessProperties", DefaultValue = null)]
[TypeConverter(typeof(StringArrayConverter))]
public string [] ReadAccessProperties {
get {
string [] data = ReadAccessPropertiesNoCopy;
return (string []) data.Clone ();
}
set {
if (value != null)
value = (string []) value.Clone ();
ReadAccessPropertiesNoCopy = value;
}
}
internal string [] ReadAccessPropertiesNoCopy {
get {
return (string []) this ["readAccessProperties"];
}
set {
this ["readAccessProperties"] = value;
}
}
[ConfigurationPropertyAttribute ("writeAccessProperties", DefaultValue = null)]
[TypeConverter (typeof (StringArrayConverter))]
public string [] WriteAccessProperties {
get {
string [] data = WriteAccessPropertiesNoCopy;
return (string []) data.Clone ();
}
set {
if (value != null)
value = (string []) value.Clone ();
WriteAccessPropertiesNoCopy = value;
}
}
internal string [] WriteAccessPropertiesNoCopy {
get {
return (string []) this ["writeAccessProperties"];
}
set {
this ["writeAccessProperties"] = value;
}
}
}
}

View File

@@ -0,0 +1,55 @@
//
// ScriptingRoleServiceSection.cs
//
// Author:
// Marek Habersack <grendel@twistedcode.net>
//
// Copyright (c) 2010 Novell, Inc (http://novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
using System;
using System.Configuration;
namespace System.Web.Configuration
{
public sealed class ScriptingRoleServiceSection : ConfigurationSection
{
static ConfigurationProperty enabledProp;
static ConfigurationPropertyCollection properties;
static ScriptingRoleServiceSection ()
{
enabledProp = new ConfigurationProperty ("enabled", typeof (bool), false);
properties = new ConfigurationPropertyCollection ();
properties.Add (enabledProp);
}
protected override ConfigurationPropertyCollection Properties {
get { return properties; }
}
[ConfigurationProperty ("enabled", DefaultValue=false)]
public bool Enabled {
get { return (bool) base [enabledProp]; }
set { base [enabledProp] = value; }
}
}
}

View File

@@ -0,0 +1,60 @@
//
// ScriptingScriptResourceHandlerSection.cs
//
// Author:
// Igor Zelmanovich <igorz@mainsoft.com>
//
// (C) 2007 Mainsoft, Inc. http://www.mainsoft.com
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Collections.Generic;
using System.Text;
using System.Configuration;
namespace System.Web.Configuration
{
public sealed class ScriptingScriptResourceHandlerSection : ConfigurationSection
{
[ConfigurationPropertyAttribute ("enableCaching", DefaultValue = true)]
public bool EnableCaching {
get {
return (bool) this ["enableCaching"];
}
set {
this ["enableCaching"] = value;
}
}
[ConfigurationPropertyAttribute ("enableCompression", DefaultValue = true)]
public bool EnableCompression {
get {
return (bool) this ["enableCompression"];
}
set {
this ["enableCompression"] = value;
}
}
}
}

View File

@@ -0,0 +1,49 @@
//
// ScriptingSectionGroup.cs
//
// Author:
// Igor Zelmanovich <igorz@mainsoft.com>
//
// (C) 2007 Mainsoft, Inc. http://www.mainsoft.com
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Collections.Generic;
using System.Text;
using System.Configuration;
namespace System.Web.Configuration
{
public sealed class ScriptingSectionGroup : ConfigurationSectionGroup
{
[ConfigurationProperty ("scriptResourceHandler")]
public ScriptingScriptResourceHandlerSection ScriptResourceHandler {
get { return (ScriptingScriptResourceHandlerSection) Sections ["scriptResourceHandler"]; }
}
[ConfigurationProperty ("webServices")]
public ScriptingWebServicesSectionGroup WebServices {
get { return (ScriptingWebServicesSectionGroup) SectionGroups ["webServices"]; }
}
}
}

View File

@@ -0,0 +1,55 @@
//
// ScriptingWebServicesSectionGroup.cs
//
// Author:
// Igor Zelmanovich <igorz@mainsoft.com>
//
// (C) 2007 Mainsoft, Inc. http://www.mainsoft.com
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Collections.Generic;
using System.Text;
using System.Configuration;
namespace System.Web.Configuration
{
public sealed class ScriptingWebServicesSectionGroup : ConfigurationSectionGroup
{
[ConfigurationProperty ("authenticationService")]
public ScriptingAuthenticationServiceSection AuthenticationService {
get { return (ScriptingAuthenticationServiceSection) Sections ["authenticationService"]; }
}
[ConfigurationProperty ("jsonSerialization")]
public ScriptingJsonSerializationSection JsonSerialization {
get { return (ScriptingJsonSerializationSection) Sections ["jsonSerialization"]; }
}
[ConfigurationProperty ("profileService")]
public ScriptingProfileServiceSection ProfileService {
get { return (ScriptingProfileServiceSection) Sections ["profileService"]; }
}
}
}

View File

@@ -0,0 +1,44 @@
//
// SystemWebExtensionsSectionGroup.cs
//
// Author:
// Igor Zelmanovich <igorz@mainsoft.com>
//
// (C) 2007 Mainsoft, Inc. http://www.mainsoft.com
//
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Collections.Generic;
using System.Text;
using System.Configuration;
namespace System.Web.Configuration
{
public sealed class SystemWebExtensionsSectionGroup : ConfigurationSectionGroup
{
[ConfigurationProperty ("scripting")]
public ScriptingSectionGroup Scripting {
get { return (ScriptingSectionGroup) SectionGroups ["scripting"]; }
}
}
}