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,98 @@
//
// AssemblyInfo.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.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Resources;
using System;
using System.Diagnostics;
using System.Web.UI;
using System.Security;
using System.Security.Permissions;
// General Information about the System.Web.Extensions assembly
// v3.5 Assembly
[assembly: AssemblyTitle ("System.Web.Extensions.dll")]
[assembly: AssemblyDescription ("System.Web.Extensions.dll")]
[assembly: AssemblyDefaultAlias ("System.Web.Extensions.dll")]
[assembly: AssemblyCompany (Consts.MonoCompany)]
[assembly: AssemblyProduct (Consts.MonoProduct)]
[assembly: AssemblyCopyright (Consts.MonoCopyright)]
#if NET_3_5
[assembly: AssemblyVersion (Consts.FxVersion)]
[assembly: AssemblyInformationalVersion (Consts.FxFileVersion)]
#else
[assembly: AssemblyVersion ("1.0.61025.0")]
[assembly: AssemblyInformationalVersion ("1.0.61025.0")]
#endif
[assembly: SatelliteContractVersion (Consts.FxVersion)]
[assembly: AssemblyFileVersion (Consts.FxFileVersion)]
[assembly: NeutralResourcesLanguage ("en-US")]
#if !(TARGET_JVM || TARGET_DOTNET)
[assembly: CLSCompliant (true)]
[assembly: AssemblyDelaySign (true)]
[assembly: AssemblyKeyFile ("../winfx.pub")]
#endif
[assembly: ComVisible (false)]
[assembly: AllowPartiallyTrustedCallers]
[assembly: TagPrefix ("System.Web.UI", "asp")]
[assembly: TagPrefix ("System.Web.UI.WebControls", "asp")]
[assembly: Dependency ("System,", LoadHint.Always)]
[assembly: WebResource ("MicrosoftAjax.js", "application/x-javascript")]
[assembly: WebResource ("MicrosoftAjax.debug.js", "application/x-javascript")]
[assembly: WebResource ("MicrosoftAjaxWebForms.js", "application/x-javascript")]
[assembly: WebResource ("MicrosoftAjaxWebForms.debug.js", "application/x-javascript")]
[assembly: WebResource ("MicrosoftAjaxTimer.js", "application/x-javascript")]
[assembly: WebResource ("MicrosoftAjaxTimer.debug.js", "application/x-javascript")]
#if TARGET_J2EE
[assembly: WebResource ("MicrosoftAjaxExtension.js", "application/x-javascript")]
[assembly: WebResource ("MicrosoftAjaxWebFormsExtension.js", "application/x-javascript")]
#endif
// Those entries must not be enabled until the appropriate .resx files with translations for the client scripts are
// created.
// The default (English) strings are embedded in the scripts - maybe we should extract them on the build time and create
// the .resx files on the fly.
//
// DO NOT ENABLE UNTIL THE .resx FILES ARE PRESENT - ENABLING CAUSES BUG #384144
#if DO_NOT_ENABLE_UNLESS_RESX_FILES_ARE_PRESENT
[assembly: ScriptResource ("MicrosoftAjax.js", "System.Web.Resources.ScriptLibrary.Res", "Sys.Res")]
[assembly: ScriptResource ("MicrosoftAjax.debug.js", "System.Web.Resources.ScriptLibrary.Res.debug", "Sys.Res")]
[assembly: ScriptResource ("MicrosoftAjaxWebForms.js", "System.Web.Resources.ScriptLibrary.WebForms.Res", "Sys.WebForms.Res")]
[assembly: ScriptResource ("MicrosoftAjaxWebForms.debug.js", "System.Web.Resources.ScriptLibrary.WebForms.Res.debug", "Sys.WebForms.Res")]
#endif

View File

@@ -0,0 +1,30 @@
2008-11-19 Marek Habersack <mhabersack@novell.com>
* AssemblyInfo.cs: made System.Web.Extensions_test_net_2_0 a
friend assembly.
2008-04-28 Marek Habersack <mhabersack@novell.com>
* AssemblyInfo.cs: disable the ScriptResource attributes - we do
not have the translations in place. Enabling the attributes
without the .resx present, causes manifest resource missing
exceptions to be thrown. Fixes bug #84144
2008-04-25 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
* AssemblyInfo.cs: Added missing attributes
2008-03-13 Marek Habersack <mhabersack@novell.com>
* AssemblyInfo.cs: version changed to 3.5.0.0 for the 3.5
profile.
2008-03-12 Marek Habersack <mhabersack@novell.com>
* AssemblyInfo.cs: use version 3.6.0.0 for the 3.5 profile, as
that's the latest .NET version of the assembly for .NET 3.5
2007-12-04 Marek Safar <marek.safar@gmail.com>
* ChangeLog: Added

View File

@@ -0,0 +1,183 @@
2010-04-28 Marek Habersack <mhabersack@novell.com>
* Makefile (OTHER_LIB_MCS_FLAGS): added a reference to
System.Web.ApplicationServices in the 4.0 profile.
2009-12-15 Marek Habersack <mhabersack@novell.com>
* System.Web.Extensions_test.dll.sources: added
System.Web.UI.WebControls/ListViewPagedDataSourceTest.cs
2009-10-08 Atsushi Enomoto <atsushi@ximian.com>
* Makefile : add -r:System.ServiceModel.
* System.Web.Extensions_test.dll.sources : add ProxyGeneratorTest.cs.
2009-07-06 Raja R Harinath <harinath@hurrynot.org>
* Makefile (TEST_MCS_FLAGS): Reference SystemWebTestShim.
2009-05-26 Marek Habersack <mhabersack@novell.com>
* Test/System.Web.UI/ScriptReferenceBaseTest.cs: added tests for
ReplaceExtension
* System.Web.Extensions_test.dll.sources: added
System.Web.UI/ScriptReferenceBaseTest.cs
* System.Web.Extensions.dll.sources: added
System.Web.UI/ScriptReferenceBase.cs
2008-11-28 Atsushi Enomoto <atsushi@ximian.com>
* Makefile : add NUNIT_RESOURCE_FILES to dist.
2008-11-20 Marek Habersack <mhabersack@novell.com>
* System.Web.Extensions.dll.sources: added
System.Web.ClientServices and System.Web.ClientServices.Providers
Sorted contents for easier reading and modification.
2008-11-19 Marek Habersack <mhabersack@novell.com>
* Makefile (NUNIT_RESOURCE_FILES): added
* System.Web.Extensions_test.dll.sources: added the system.web
Mainsoft test suite files.
Added new test files.
2008-11-18 Marek Habersack <mhabersack@novell.com>
* System.Web.Extensions.dll.sources: added
./System.Web.UI.WebControls/ListViewTableCell.cs
Added ./System.Web.Query.Dynamic/DynamicClass.cs and
./System.Web.Query.Dynamic/ParseException.cs
Added ./System.Web.UI.WebControls/ListViewContainer.cs
2008-11-15 Marek Habersack <mhabersack@novell.com>
* System.Web.Extensions.dll.sources: added
System.Web.UI.WebControls/DataPagerCommandEventArgs.cs
2008-10-30 Marek Habersack <mhabersack@novell.com>
* System.Web.Extensions.dll.sources: added
./System.Web.UI.WebControls/TemplatePagerField.cs
* System.Web.Extensions_test.dll.sources: added
System.Web.UI.WebControls/EventRecorder.cs,
System.Web.UI.WebControls/ListViewTest.cs,
System.Web.UI.WebControls/DataPagerFieldCollectionTest.cs
2008-10-17 Jonathan Pryor <jpryor@novell.com>
* Test/Makefile: Add doc-update target support.
2008-10-08 Atsushi Enomoto <atsushi@ximian.com>
* Makefile: add reference to S.D.Linq.
2008-09-30 Marek Habersack <mhabersack@novell.com>
* Makefile (LIB_MCS_FLAGS): added -define:NET_3_5 as the 3.5 parts
of the assembly are now built as part of the 2.0 profile.
2008-09-19 Marek Habersack <mhabersack@novell.com>
* System.Web.Extensions.dll.sources: removed most of the
Newtonsoft JSON code, leaving only ReflectionUtils and
JavaScriptUtils.
2008-09-18 Marek Safar <marek.safar@gmail.com>
* Makefile: Add System.Core reference.
2008-09-18 Atsushi Enomoto <atsushi@ximian.com>
* System.Web.Extensions.dll.sources: added LinqDataSource stuff.
2008-09-17 Marek Habersack <mhabersack@novell.com>
* System.Web.Extensions.dll.sources: added
System.Web.Script.Serialization/Json.cs,
System.Web.Script.Serialization/JsonSerializer.cs and
System.Web.Script.Serialization/StringBuilderExtensions.cs
* System.Web.Script.Serialization/Json.cs: helper class to invoke
de/serializer.
* System.Web.Script.Serialization/JsonSerializer.cs: new
implementation of Json serializer that is free of issues found in
the old one (and faster + simpler).
* System.Web.Script.Serialization/JavaScriptSerializer.cs: staging
transition to the new Json (de)serializer. For now deserialization
is done using the old JSON code, serialization uses the new
serializer.
* System.Web.Script.Serialization/StringBuilderExtensions.cs: a
set of simple StringBuilder extension methods which check the size
of the builder against some value and throw an exception if the
value is exceeded.
2008-09-13 Atsushi Enomoto <atsushi@ximian.com>
* System.Web.Extensions.dll.sources :
added sys.web.DynamicData types.
2008-08-30 Marek Habersack <mhabersack@novell.com>
* System.Web.Script.Serialization/JavaScriptSerializer.cs: if the
target type is an IDictionary with value type of System.Object,
make sure to NOT convert any values.
Any values descendant from JavaScriptSerializer.LazyDictionary are
converted to Dictionary <string, object>
2008-08-28 Marek Habersack <mhabersack@novell.com>
* System.Web.Script.Services/LogicalTypeInfo.cs: Invoke does not
convert context to System.Object.
If context is descendant from JavaScriptSerializer.LazyDictionary
it is converted to a regular Dictionary <string, object> before
passing to the service method.
* System.Web.Script.Serialization/JavaScriptSerializer.cs:
correctly handle members which have an interface as their return
type - several known interfaces are converted to implementing
types.
2008-08-22 Marek Habersack <mhabersack@novell.com>
* Test/System.Web.Script.Serialization/JavaScriptSerializerTest.cs:
marked several of the JavaScriptSerializer tests as not
working. Experiments show that the tests are invalid as they relay
on behavior which is different to .NET's.
* System.Web.Script.Serialization/JavaScriptSerializer.cs:
GetConverter now checks whether the requested type is descendant
from the type supported by teh converter.
2008-06-11 Marek Habersack <mhabersack@novell.com>
* Test/System.Web.UI/ScriptBehaviorDescriptorTest.cs,
Test/System.Web.UI/ScriptComponentDescriptorTest.cs,
Test/System.Web.UI/ScriptControlDescriptorTest.cs: disabled
tests relying on the Dictionary keys order.
2008-05-07 Marek Habersack <mhabersack@novell.com>
* ChangeLog: added and moved entries from ../ChaneLog to here.
* Makefile (RESOURCE_FILES): partially revert r102022 - always use
the 3.5.0.0 script library. Fixes bug #384580
2008-04-29 Marek Habersack <mhabersack@novell.com>
* System.Web.Extensions/Makefile (EXTRA_DISTFILES): include all
the Microsoft AJAX library scripts in the dist tarball.
2008-04-28 Marek Habersack <mhabersack@novell.com>
* System.Web.Extensions/Makefile (RESOURCE_FILES): for the 2.0
profile use the 1.0.61025.0 scripts.

View File

@@ -0,0 +1,104 @@
thisdir = class/System.Web.Extensions
SUBDIRS = Test
include ../../build/rules.make
LIBRARY = System.Web.Extensions.dll
RESOURCE_FILES= \
../MicrosoftAjaxLibrary/System.Web.Extensions/3.5.0.0/3.5.21022.8/MicrosoftAjax.debug.js \
../MicrosoftAjaxLibrary/System.Web.Extensions/3.5.0.0/3.5.21022.8/MicrosoftAjax.js \
../MicrosoftAjaxLibrary/System.Web.Extensions/3.5.0.0/3.5.21022.8/MicrosoftAjaxTimer.debug.js \
../MicrosoftAjaxLibrary/System.Web.Extensions/3.5.0.0/3.5.21022.8/MicrosoftAjaxTimer.js \
../MicrosoftAjaxLibrary/System.Web.Extensions/3.5.0.0/3.5.21022.8/MicrosoftAjaxWebForms.debug.js\
../MicrosoftAjaxLibrary/System.Web.Extensions/3.5.0.0/3.5.21022.8/MicrosoftAjaxWebForms.js
RESOURCE_FILES_DIST= \
../MicrosoftAjaxLibrary/System.Web.Extensions/3.5.0.0/3.5.21022.8/MicrosoftAjax.debug.js \
../MicrosoftAjaxLibrary/System.Web.Extensions/3.5.0.0/3.5.21022.8/MicrosoftAjax.js \
../MicrosoftAjaxLibrary/System.Web.Extensions/3.5.0.0/3.5.21022.8/MicrosoftAjaxTimer.debug.js \
../MicrosoftAjaxLibrary/System.Web.Extensions/3.5.0.0/3.5.21022.8/MicrosoftAjaxTimer.js \
../MicrosoftAjaxLibrary/System.Web.Extensions/3.5.0.0/3.5.21022.8/MicrosoftAjaxWebForms.debug.js\
../MicrosoftAjaxLibrary/System.Web.Extensions/3.5.0.0/3.5.21022.8/MicrosoftAjaxWebForms.js\
../MicrosoftAjaxLibrary/System.Web.Extensions/1.0.61025.0/MicrosoftAjax.debug.js \
../MicrosoftAjaxLibrary/System.Web.Extensions/1.0.61025.0/MicrosoftAjax.js \
../MicrosoftAjaxLibrary/System.Web.Extensions/1.0.61025.0/MicrosoftAjaxTimer.debug.js \
../MicrosoftAjaxLibrary/System.Web.Extensions/1.0.61025.0/MicrosoftAjaxTimer.js \
../MicrosoftAjaxLibrary/System.Web.Extensions/1.0.61025.0/MicrosoftAjaxWebForms.debug.js\
../MicrosoftAjaxLibrary/System.Web.Extensions/1.0.61025.0/MicrosoftAjaxWebForms.js \
Resources/MicrosoftAjaxExtension.js \
Resources/MicrosoftAjaxWebFormsExtension.js
NUNIT_RESOURCE_FILES= \
Test/resources/Web.mono.config \
Test/resources/profile.config.4.5 \
Test/resources/profile.config.4.0 \
Test/resources/profile.config.2.0 \
$(wildcard Test/resources/*.as?x) \
$(wildcard ../System.Web/Test/mainsoft/NunitWeb/NunitWeb/Resources/*.cs) \
$(wildcard ../System.Web/Test/mainsoft/NunitWeb/NunitWeb/Resources/*.as?x) \
$(wildcard ../System.Web/Test/mainsoft/NunitWeb/NunitWeb/Resources/*.master)
CLASSLIB_DIR = $(topdir)/class/lib/$(PROFILE)
STANDALONE_RUNNER_SUPPORT_ASSEMBLY = $(CLASSLIB_DIR)/standalone-runner-support.dll
STANDALONE_TEST_MCS_FLAGS = $(LIB_MCS_FLAGS) $(PROFILE_MCS_FLAGS) -debug:full -r:$(STANDALONE_RUNNER_SUPPORT_ASSEMBLY) -r:System.Web.dll -r:System.Web.Extensions.dll -r:nunit.framework.dll
STANDALONE_TEST_ASSEMBLY = System.Web.Extensions_standalone_test_$(PROFILE).dll
STANDALONE_TEST_MAKEFRAG = $(depsdir)/$(STANDALONE_TEST_ASSEMBLY).makefrag
STANDALONE_TEST_RUNNER = ../System.Web/Test/tools/standalone-runner.exe
RUN_STANDALONE = $(TEST_RUNTIME) $(STANDALONE_TEST_RUNNER)
ifdef TESTNAME
RUN_STANDALONE += --test=$(TESTNAME)
endif
ifeq (4, $(FRAMEWORK_VERSION_MAJOR))
OTHER_LIB_MCS_FLAGS += -r:System.Web.ApplicationServices.dll
endif
LIB_MCS_FLAGS = \
-unsafe \
-define:NET_3_5 \
-define:SYSTEM_WEB_EXTENSIONS \
-r:$(corlib) \
-r:System.dll \
-r:System.Core.dll \
-r:System.Drawing.dll \
-r:System.Data.dll \
-r:System.Data.Linq.dll \
-r:System.Xml.dll \
-r:System.Web.dll \
-r:System.Web.Services.dll \
-r:System.Configuration.dll \
-r:System.EnterpriseServices.dll \
-r:System.ServiceModel.dll \
$(OTHER_LIB_MCS_FLAGS) \
$(RESOURCE_FILES:%=/resource:%)
TEST_MCS_FLAGS = $(LIB_MCS_FLAGS) -doc:$(test_lib:.dll=.xml) -nowarn:219,169,1591 $(NUNIT_RESOURCE_FILES:%=/resource:%) -r:SystemWebTestShim.dll -define:SYSTEM_WEB_EXTENSIONS
EXTRA_DISTFILES = $(RESOURCE_FILES_DIST) $(NUNIT_RESOURCE_FILES) \
System.Web.Extensions_standalone_test.dll.sources \
Test/standalone-tests/Consts.cs.in \
Test/standalone-tests/DataPager_NumericPagerField_Bug615315.cs
build-standalone-runner-support:
$(MAKE) -C ../System.Web/ standalone-runner-support
$(MAKE) -C ../System.Web/Test/tools/ STANDALONE_SUPPORT_BUILT=1 standalone-runner.exe
run-standalone-test: build-standalone-runner-support $(STANDALONE_RUNNER_SUPPORT_MAKEFRAG) $(STANDALONE_TEST_MAKEFRAG) $(STANDALONE_TEST_ASSEMBLY)
$(RUN_STANDALONE) $(STANDALONE_TEST_ASSEMBLY)
$(STANDALONE_TEST_MAKEFRAG): System.Web.Extensions_standalone_test.dll.sources
@echo Creating $@ ...
@sed 's,^,$(STANDALONE_TEST_ASSEMBLY): ,' $< > $@
include $(STANDALONE_TEST_MAKEFRAG)
$(STANDALONE_TEST_ASSEMBLY): $(the_assembly) Test/standalone-tests/Consts.cs
$(CSCOMPILE) $(STANDALONE_TEST_MCS_FLAGS) -out:$@ -target:library @System.Web.Extensions_standalone_test.dll.sources
Test/standalone-tests/Consts.cs: Test/standalone-tests/Consts.cs.in
@sed 's,@SystemWebExtensionsClassDir@,$(shell pwd),' $< > $@
include ../../build/library.make

View File

@@ -0,0 +1,73 @@
Sys._Application.prototype.getForm = function Sys$_Application$getForm() {
return this._form;
}
Sys.Application._form = {
_application : Sys.Application
}
Sys.Application = {
_globalInstance : Sys.Application,
notifyScriptLoaded : Sys.Application.notifyScriptLoaded,
getInstance : function Sys$Application$getInstance(formElement) {
/// <param name="formElement" domElement="true"></param>
/// <returns type="Sys.Application"></returns>
var e = Function._validateParams(arguments, [
{name: "formElement", domElement: true}
]);
return formElement._application;
},
_initialize : function Sys$Application$_initialize(formElement) {
if (formElement._application) {
throw Error.invalidOperation('The Application cannot be initialized more than once.');
}
formElement._application = new Sys._Application();
formElement._application._form = formElement;
}
}
Sys.Component.prototype.registerWithApplication = function Sys$Component$registerWithApplication(application) {
/// <param name="application" type="Sys._Application"></param>
var e = Function._validateParams(arguments, [
{name: "application", type: Sys._Application}
]);
if (e) throw e;
if(this._application)
return;
this._application = application;
application.registerDisposableObject(this)
}
Sys.Component.prototype.registerAsSingleton = function Sys$Component$registerAsSingleton() {
if (arguments.length !== 0) throw Error.parameterCount();
this.registerWithApplication(Sys.Application._globalInstance);
}
Sys.Component.prototype.getApplication = function Sys$Component$getApplication() {
return this._application;
}
var $create = Sys.Component.create = function Sys$Component$createWithForm(formElement, type, properties, events, references, element) {
/// <param name="formElement" domElement="true"></param>
/// <param name="type" type="Type"></param>
/// <param name="properties" optional="true" mayBeNull="true"></param>
/// <param name="events" optional="true" mayBeNull="true"></param>
/// <param name="references" optional="true" mayBeNull="true"></param>
/// <param name="element" domElement="true" optional="true" mayBeNull="true"></param>
/// <returns type="Sys.UI.Component"></returns>
var e = Function._validateParams(arguments, [
{name: "formElement", domElement: true},
{name: "type", type: Type},
{name: "properties", mayBeNull: true, optional: true},
{name: "events", mayBeNull: true, optional: true},
{name: "references", mayBeNull: true, optional: true},
{name: "element", mayBeNull: true, domElement: true, optional: true}
]);
if (e) throw e;
return Sys.Component._createInternal(formElement._application, type, properties, events, references, element);
}
var $find = null;

View File

@@ -0,0 +1,17 @@
Sys.WebForms.PageRequestManager.getInstance = function Sys$WebForms$PageRequestManager$getInstance(formElement) {
/// <param name="formElement" domElement="true"></param>
/// <returns type="Sys.WebForms.PageRequestManager"></returns>
var e = Function._validateParams(arguments, [
{name: "formElement", domElement: true}
]);
return formElement._pageRequestManager;
}
Sys.WebForms.PageRequestManager._initialize = function Sys$WebForms$PageRequestManager$_initialize(scriptManagerID, formElement) {
if (formElement._pageRequestManager) {
throw Error.invalidOperation(Sys.WebForms.Res.PRM_CannotRegisterTwice);
}
formElement._pageRequestManager = new Sys.WebForms.PageRequestManager();
formElement._pageRequestManager._application = formElement._application;
formElement._pageRequestManager._initializeInternal(scriptManagerID, formElement);
}

View File

@@ -0,0 +1,8 @@
2008-11-20 Marek Habersack <mhabersack@novell.com>
* ClientFormsAuthenticationCredentials.cs,
ClientFormsAuthenticationMembershipProvider.cs,
ClientRoleProvider.cs, ClientSettingsProvider.cs,
ClientWindowsAuthenticationMembershipProvider.cs,
IClientFormsAuthenticationCredentialsProvider.cs,
SettingsSavedEventArgs.cs, UserValidatedEventArgs.cs: added (stubs)

View File

@@ -0,0 +1,68 @@
//
// System.Web.ClientServices.Providers.ClientFormsAuthenticationCredentials
//
// Authors:
// Marek Habersack (mhabersack@novell.com)
//
// (C) 2008 Novell, Inc
//
//
// 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.
//
#if NET_3_5
using System;
using System.ComponentModel;
using System.Net;
using System.Security;
using System.Security.Principal;
using System.Web;
using System.Web.Security;
using System.Web.UI;
namespace System.Web.ClientServices.Providers
{
public class ClientFormsAuthenticationCredentials
{
public string Password {
get;
set;
}
public bool RememberMe {
get;
set;
}
public string UserName {
get;
set;
}
public ClientFormsAuthenticationCredentials (string username, string password, bool rememberMe)
{
Password = password;
RememberMe = rememberMe;
UserName = username;
}
}
}
#endif

View File

@@ -0,0 +1,200 @@
//
// System.Web.ClientServices.Providers.ClientFormsAuthenticationMembershipProvider
//
// Authors:
// Marek Habersack (mhabersack@novell.com)
//
// (C) 2008 Novell, Inc
//
//
// 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.
//
#if NET_3_5
using System;
using System.ComponentModel;
using System.Collections.Specialized;
using System.Net;
using System.Security;
using System.Security.Principal;
using System.Web;
using System.Web.Security;
using System.Web.UI;
namespace System.Web.ClientServices.Providers
{
public class ClientFormsAuthenticationMembershipProvider : System.Web.Security.MembershipProvider
{
public event EventHandler <UserValidatedEventArgs> UserValidated;
public override string ApplicationName {
get { throw new NotImplementedException (); }
set { throw new NotImplementedException (); }
}
public override bool EnablePasswordReset {
get { throw new NotImplementedException (); }
}
public override bool EnablePasswordRetrieval {
get { throw new NotImplementedException (); }
}
public override int MaxInvalidPasswordAttempts {
get { throw new NotImplementedException (); }
}
public override int MinRequiredNonAlphanumericCharacters {
get { throw new NotImplementedException (); }
}
public override int MinRequiredPasswordLength {
get { throw new NotImplementedException (); }
}
public override int PasswordAttemptWindow {
get { throw new NotImplementedException (); }
}
public override MembershipPasswordFormat PasswordFormat {
get { throw new NotImplementedException (); }
}
public override string PasswordStrengthRegularExpression {
get { throw new NotImplementedException (); }
}
public override bool RequiresQuestionAndAnswer {
get { throw new NotImplementedException (); }
}
public override bool RequiresUniqueEmail {
get { throw new NotImplementedException (); }
}
public ClientFormsAuthenticationMembershipProvider ()
{
throw new NotImplementedException ();
}
public static bool ValidateUser (string username, string password, string serviceUri)
{
throw new NotImplementedException ();
}
public override bool ChangePassword (string username, string oldPassword, string newPassword)
{
throw new NotImplementedException ();
}
public override bool ChangePasswordQuestionAndAnswer (string username, string password, string newPasswordQuestion, string newPasswordAnswer)
{
throw new NotImplementedException ();
}
public override MembershipUser CreateUser (string username, string password, string email, string passwordQuestion, string passwordAnswer, bool isApproved,
object providerUserKey, out MembershipCreateStatus status)
{
throw new NotImplementedException ();
}
public override bool DeleteUser (string username, bool deleteAllRelatedData)
{
throw new NotImplementedException ();
}
public override MembershipUserCollection FindUsersByEmail (string emailToMatch, int pageIndex, int pageSize, out int totalRecords)
{
throw new NotImplementedException ();
}
public override MembershipUserCollection FindUsersByName (string usernameToMatch, int pageIndex, int pageSize, out int totalRecords)
{
throw new NotImplementedException ();
}
public override MembershipUserCollection GetAllUsers (int pageIndex, int pageSize, out int totalRecords)
{
throw new NotImplementedException ();
}
public override int GetNumberOfUsersOnline ()
{
throw new NotImplementedException ();
}
public override string GetPassword (string username, string answer)
{
throw new NotImplementedException ();
}
public override MembershipUser GetUser (object providerUserKey, bool userIsOnline)
{
throw new NotImplementedException ();
}
public override MembershipUser GetUser (string username, bool userIsOnline)
{
throw new NotImplementedException ();
}
public override string GetUserNameByEmail (string email)
{
throw new NotImplementedException ();
}
public override void Initialize (string name, NameValueCollection config)
{
throw new NotImplementedException ();
}
public void Logout ()
{
throw new NotImplementedException ();
}
public override string ResetPassword (string username, string answer)
{
throw new NotImplementedException ();
}
public override bool UnlockUser (string username)
{
throw new NotImplementedException ();
}
public override void UpdateUser (System.Web.Security.MembershipUser user)
{
throw new NotImplementedException ();
}
public override bool ValidateUser (string username, string password)
{
throw new NotImplementedException ();
}
public bool ValidateUser (string username, string password, bool rememberMe)
{
throw new NotImplementedException ();
}
}
}
#endif

View File

@@ -0,0 +1,122 @@
//
// System.Web.ClientServices.Providers.ClientRoleProvider
//
// Authors:
// Marek Habersack (mhabersack@novell.com)
//
// (C) 2008 Novell, Inc
//
//
// 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.
//
#if NET_3_5
using System;
using System.Collections.Specialized;
using System.ComponentModel;
using System.Net;
using System.Security;
using System.Security.Principal;
using System.Web;
using System.Web.Security;
using System.Web.UI;
namespace System.Web.ClientServices.Providers
{
public class ClientRoleProvider : RoleProvider
{
public override string ApplicationName {
get { throw new NotImplementedException (); }
set { throw new NotImplementedException (); }
}
public string ServiceUri {
get { throw new NotImplementedException (); }
set { throw new NotImplementedException (); }
}
public ClientRoleProvider ()
{
throw new NotImplementedException ();
}
public override void AddUsersToRoles (string [] usernames, string [] roleNames)
{
throw new NotImplementedException ();
}
public override void CreateRole (string roleName)
{
throw new NotImplementedException ();
}
public override bool DeleteRole (string roleName, bool throwOnPopulatedRole)
{
throw new NotImplementedException ();
}
public override string [] FindUsersInRole (string roleName, string usernameToMatch)
{
throw new NotImplementedException ();
}
public override string [] GetAllRoles ()
{
throw new NotImplementedException ();
}
public override string [] GetRolesForUser (string username)
{
throw new NotImplementedException ();
}
public override string [] GetUsersInRole (string roleName)
{
throw new NotImplementedException ();
}
public override void Initialize (string name, NameValueCollection config)
{
throw new NotImplementedException ();
}
public override bool IsUserInRole (string username, string roleName)
{
throw new NotImplementedException ();
}
public override void RemoveUsersFromRoles (string [] usernames, string [] roleNames)
{
throw new NotImplementedException ();
}
public void ResetCache ()
{
throw new NotImplementedException ();
}
public override bool RoleExists (string roleName)
{
throw new NotImplementedException ();
}
}
}
#endif

View File

@@ -0,0 +1,100 @@
//
// System.Web.ClientServices.Providers.ClientSettingsProvider
//
// Authors:
// Marek Habersack (mhabersack@novell.com)
//
// (C) 2008 Novell, Inc
//
//
// 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.
//
#if NET_3_5
using System;
using System.Collections.Specialized;
using System.ComponentModel;
using System.Configuration;
using System.Net;
using System.Security;
using System.Security.Principal;
using System.Web;
using System.Web.Security;
using System.Web.UI;
namespace System.Web.ClientServices.Providers
{
public class ClientSettingsProvider : SettingsProvider, IApplicationSettingsProvider
{
public event EventHandler <SettingsSavedEventArgs> SettingsSaved;
public static string ServiceUri {
get { throw new NotImplementedException (); }
set { throw new NotImplementedException (); }
}
public override string ApplicationName {
get { throw new NotImplementedException (); }
set { throw new NotImplementedException (); }
}
public ClientSettingsProvider ()
{
throw new NotImplementedException ();
}
public static SettingsPropertyCollection GetPropertyMetadata (string serviceUri)
{
throw new NotImplementedException ();
}
public SettingsPropertyValue GetPreviousVersion (SettingsContext context, SettingsProperty property)
{
throw new NotImplementedException ();
}
public override SettingsPropertyValueCollection GetPropertyValues (SettingsContext context, SettingsPropertyCollection propertyCollection)
{
throw new NotImplementedException ();
}
public override void Initialize (string name, NameValueCollection config)
{
throw new NotImplementedException ();
}
public void Reset (SettingsContext context)
{
throw new NotImplementedException ();
}
public override void SetPropertyValues (SettingsContext context, SettingsPropertyValueCollection propertyValueCollection)
{
throw new NotImplementedException ();
}
public void Upgrade (SettingsContext context, SettingsPropertyCollection properties)
{
throw new NotImplementedException ();
}
}
}
#endif

View File

@@ -0,0 +1,183 @@
//
// System.Web.ClientServices.Providers.ClientWindowsAuthenticationMembershipProvider
//
// Authors:
// Marek Habersack (mhabersack@novell.com)
//
// (C) 2008 Novell, Inc
//
//
// 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.
//
#if NET_3_5
using System;
using System.Collections.Specialized;
using System.ComponentModel;
using System.Net;
using System.Security;
using System.Security.Principal;
using System.Web;
using System.Web.Security;
using System.Web.UI;
namespace System.Web.ClientServices.Providers
{
public class ClientWindowsAuthenticationMembershipProvider : MembershipProvider
{
public override string ApplicationName {
get { throw new NotImplementedException (); }
set { throw new NotImplementedException (); }
}
public override bool EnablePasswordReset {
get { throw new NotImplementedException (); }
}
public override bool EnablePasswordRetrieval {
get { throw new NotImplementedException (); }
}
public override int MaxInvalidPasswordAttempts {
get { throw new NotImplementedException (); }
}
public override int MinRequiredNonAlphanumericCharacters {
get { throw new NotImplementedException (); }
}
public override int MinRequiredPasswordLength {
get { throw new NotImplementedException (); }
}
public override int PasswordAttemptWindow {
get { throw new NotImplementedException (); }
}
public override System.Web.Security.MembershipPasswordFormat PasswordFormat {
get { throw new NotImplementedException (); }
}
public override string PasswordStrengthRegularExpression {
get { throw new NotImplementedException (); }
}
public override bool RequiresQuestionAndAnswer {
get { throw new NotImplementedException (); }
}
public override bool RequiresUniqueEmail {
get { throw new NotImplementedException (); }
}
public ClientWindowsAuthenticationMembershipProvider ()
{
throw new NotImplementedException ();
}
public override bool ChangePassword (string username, string oldPassword, string newPassword)
{
throw new NotImplementedException ();
}
public override bool ChangePasswordQuestionAndAnswer (string username, string password, string newPasswordQuestion, string newPasswordAnswer)
{
throw new NotImplementedException ();
}
public override MembershipUser CreateUser (string username, string password, string email, string passwordQuestion, string passwordAnswer, bool isApproved,
object providerUserKey, out MembershipCreateStatus status)
{
throw new NotImplementedException ();
}
public override bool DeleteUser (string username, bool deleteAllRelatedData)
{
throw new NotImplementedException ();
}
public override MembershipUserCollection FindUsersByEmail (string emailToMatch, int pageIndex, int pageSize, out int totalRecords)
{
throw new NotImplementedException ();
}
public override MembershipUserCollection FindUsersByName (string usernameToMatch, int pageIndex, int pageSize, out int totalRecords)
{
throw new NotImplementedException ();
}
public override MembershipUserCollection GetAllUsers (int pageIndex, int pageSize, out int totalRecords)
{
throw new NotImplementedException ();
}
public override int GetNumberOfUsersOnline ()
{
throw new NotImplementedException ();
}
public override string GetPassword (string username, string answer)
{
throw new NotImplementedException ();
}
public override MembershipUser GetUser (object providerUserKey, bool userIsOnline)
{
throw new NotImplementedException ();
}
public override MembershipUser GetUser (string username, bool userIsOnline)
{
throw new NotImplementedException ();
}
public override string GetUserNameByEmail (string email)
{
throw new NotImplementedException ();
}
public void Logout ()
{
throw new NotImplementedException ();
}
public override string ResetPassword (string username, string answer)
{
throw new NotImplementedException ();
}
public override bool UnlockUser (string username)
{
throw new NotImplementedException ();
}
public override void UpdateUser (MembershipUser user)
{
throw new NotImplementedException ();
}
public override bool ValidateUser (string username, string password)
{
throw new NotImplementedException ();
}
}
}
#endif

View File

@@ -0,0 +1,48 @@
//
// System.Web.ClientServices.Providers.IClientFormsAuthenticationCredentialsProvider
//
// Authors:
// Marek Habersack (mhabersack@novell.com)
//
// (C) 2008 Novell, Inc
//
//
// 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.
//
#if NET_3_5
using System;
using System.ComponentModel;
using System.Net;
using System.Security;
using System.Security.Principal;
using System.Web;
using System.Web.Security;
using System.Web.UI;
namespace System.Web.ClientServices.Providers
{
public interface IClientFormsAuthenticationCredentialsProvider
{
ClientFormsAuthenticationCredentials GetCredentials ();
}
}
#endif

View File

@@ -0,0 +1,58 @@
//
// System.Web.ClientServices.Providers.SettingsSavedEventArgs
//
// Authors:
// Marek Habersack (mhabersack@novell.com)
//
// (C) 2008 Novell, Inc
//
//
// 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.
//
#if NET_3_5
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Net;
using System.Security;
using System.Security.Principal;
using System.Web;
using System.Web.Security;
using System.Web.UI;
namespace System.Web.ClientServices.Providers
{
public class SettingsSavedEventArgs : EventArgs
{
public ReadOnlyCollection <string> FailedSettingsList {
get;
private set;
}
public SettingsSavedEventArgs (IEnumerable <string> failedSettingsList)
{
FailedSettingsList = new ReadOnlyCollection <string> (new List <string> (failedSettingsList));
}
}
}
#endif

View File

@@ -0,0 +1,56 @@
//
// System.Web.ClientServices.Providers.UserValidatedEventArgs
//
// Authors:
// Marek Habersack (mhabersack@novell.com)
//
// (C) 2008 Novell, Inc
//
//
// 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.
//
#if NET_3_5
using System;
using System.ComponentModel;
using System.Net;
using System.Security;
using System.Security.Principal;
using System.Web;
using System.Web.Security;
using System.Web.UI;
namespace System.Web.ClientServices.Providers
{
public class UserValidatedEventArgs : EventArgs
{
public string UserName {
get;
private set;
}
public UserValidatedEventArgs (string username)
{
UserName = username;
}
}
}
#endif

View File

@@ -0,0 +1,4 @@
2008-11-20 Marek Habersack <mhabersack@novell.com>
* ClientFormsIdentity.cs, ClientRolePrincipal.cs,
ConnectivityStatus.cs: added (stubs)

View File

@@ -0,0 +1,96 @@
//
// System.Web.ClientServices.ClientFormsIdentity
//
// Authors:
// Marek Habersack (mhabersack@novell.com)
//
// (C) 2008 Novell, Inc
//
//
// 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.
//
#if NET_3_5
using System;
using System.ComponentModel;
using System.Net;
using System.Security;
using System.Security.Principal;
using System.Web;
using System.Web.Security;
using System.Web.UI;
namespace System.Web.ClientServices
{
public class ClientFormsIdentity : IDisposable, IIdentity
{
string Password {
get;
set;
}
public CookieContainer AuthenticationCookies {
get;
private set;
}
public string AuthenticationType {
get;
private set;
}
public bool IsAuthenticated {
get;
private set;
}
public string Name {
get;
private set;
}
public MembershipProvider Provider {
get;
private set;
}
public ClientFormsIdentity (string name, string password, MembershipProvider provider, string authenticationType, bool isAuthenticated, CookieContainer authenticationCookies)
{
Password = password;
Name = name;
Provider = provider;
AuthenticationType = authenticationType;
IsAuthenticated = isAuthenticated;
AuthenticationCookies = authenticationCookies;
}
public void Dispose ()
{
throw new NotImplementedException ();
}
public void RevalidateUser ()
{
throw new NotImplementedException ();
}
}
}
#endif

View File

@@ -0,0 +1,61 @@
//
// System.Web.ClientServices.ClientRolePrincipal
//
// Authors:
// Marek Habersack (mhabersack@novell.com)
//
// (C) 2008 Novell, Inc
//
//
// 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.
//
#if NET_3_5
using System;
using System.ComponentModel;
using System.Net;
using System.Security;
using System.Security.Principal;
using System.Web;
using System.Web.Security;
using System.Web.UI;
namespace System.Web.ClientServices
{
public class ClientRolePrincipal : IPrincipal
{
public IIdentity Identity {
get;
private set;
}
public ClientRolePrincipal (IIdentity identity)
{
Identity = identity;
}
public bool IsInRole (string role)
{
throw new NotImplementedException ();
}
}
}
#endif

View File

@@ -0,0 +1,56 @@
//
// System.Web.ClientServices.ConnectivityStatus
//
// Authors:
// Marek Habersack (mhabersack@novell.com)
//
// (C) 2008 Novell, Inc
//
//
// 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.
//
#if NET_3_5
using System;
using System.ComponentModel;
using System.Net;
using System.Security;
using System.Security.Principal;
using System.Web;
using System.Web.Security;
using System.Web.UI;
namespace System.Web.ClientServices
{
public static class ConnectivityStatus
{
public static bool IsOffline {
get {
throw new NotImplementedException ();
}
set {
throw new NotImplementedException ();
}
}
}
}
#endif

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+

Some files were not shown because too many files have changed in this diff Show More