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,95 @@
//
// AssemblyInfo.cs
//
// Author:
// Andreas Nahr (ClassDevelopment@A-SoftTech.com)
//
// (C) 2003 Ximian, Inc. http://www.ximian.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.Reflection;
using System.Resources;
using System.Security;
using System.Security.Permissions;
using System.Diagnostics;
using System.Runtime;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using System.Web;
// General Information about the System.Web.Abstractions assembly
[assembly: AssemblyTitle ("System.Web.Abstractions.dll")]
[assembly: AssemblyDescription ("System.Web.Abstractions.dll")]
[assembly: AssemblyDefaultAlias ("System.Web.Abstractions.dll")]
[assembly: AssemblyCompany (Consts.MonoCompany)]
[assembly: AssemblyProduct (Consts.MonoProduct)]
[assembly: AssemblyCopyright (Consts.MonoCopyright)]
[assembly: AssemblyVersion (Consts.FxVersion)]
[assembly: SatelliteContractVersion (Consts.FxVersion)]
[assembly: AssemblyInformationalVersion (Consts.FxFileVersion)]
[assembly: AssemblyFileVersion (Consts.FxFileVersion)]
[assembly: NeutralResourcesLanguage ("en-US")]
[assembly: CLSCompliant (true)]
[assembly: AssemblyDelaySign (true)]
[assembly: AssemblyKeyFile ("../winfx.pub")]
[assembly: ComVisible (false)]
#if !NET_4_0
[assembly: ComCompatibleVersion (1, 0, 3300, 0)]
#endif
[assembly: AllowPartiallyTrustedCallers]
// FIXME: We get collisions with this internalsVisibleTo because of Consts.cs and MonoTodo
//[assembly: InternalsVisibleTo ("System.ServiceModel.Web, PublicKey=0024000004800000940000000602000000240000525341310004000001000100b5fc90e7027f67871e773a8fde8938c81dd402ba65b9201d60593e96c492651e889cc13f1415ebb53fac1131ae0bd333c5ee6021672d9718ea31a8aebd0da0072f25d87dba6fc90ffd598ed4da35e44c398c454307e8e33b8426143daec9f596836f97c8f74750e5975c64e2189f45def46b2a2b1247adc3652bf5c308055da9")]
#if NET_4_0
[assembly: SecurityRules (SecurityRuleSet.Level2, SkipVerificationInFullTrust = true)]
[assembly: TypeForwardedTo (typeof (System.Web.HttpStaticObjectsCollectionBase))]
[assembly: TypeForwardedTo (typeof (System.Web.HttpStaticObjectsCollectionWrapper))]
[assembly: TypeForwardedTo (typeof (System.Web.HttpContextWrapper))]
[assembly: TypeForwardedTo (typeof (System.Web.HttpContextBase))]
[assembly: TypeForwardedTo (typeof (System.Web.HttpFileCollectionBase))]
[assembly: TypeForwardedTo (typeof (System.Web.HttpPostedFileBase))]
[assembly: TypeForwardedTo (typeof (System.Web.HttpFileCollectionWrapper))]
[assembly: TypeForwardedTo (typeof (System.Web.HttpCachePolicyWrapper))]
[assembly: TypeForwardedTo (typeof (System.Web.HttpApplicationStateWrapper))]
[assembly: TypeForwardedTo (typeof (System.Web.HttpApplicationStateBase))]
[assembly: TypeForwardedTo (typeof (System.Web.HttpBrowserCapabilitiesBase))]
[assembly: TypeForwardedTo (typeof (System.Web.HttpCachePolicyBase))]
[assembly: TypeForwardedTo (typeof (System.Web.HttpBrowserCapabilitiesWrapper))]
[assembly: TypeForwardedTo (typeof (System.Web.HttpPostedFileWrapper))]
[assembly: TypeForwardedTo (typeof (System.Web.HttpSessionStateWrapper))]
[assembly: TypeForwardedTo (typeof (System.Web.HttpServerUtilityBase))]
[assembly: TypeForwardedTo (typeof (System.Web.HttpSessionStateBase))]
[assembly: TypeForwardedTo (typeof (System.Web.HttpServerUtilityWrapper))]
[assembly: TypeForwardedTo (typeof (System.Web.HttpRequestBase))]
[assembly: TypeForwardedTo (typeof (System.Web.HttpRequestWrapper))]
[assembly: TypeForwardedTo (typeof (System.Web.HttpResponseWrapper))]
[assembly: TypeForwardedTo (typeof (System.Web.HttpResponseBase))]
#endif

View File

@@ -0,0 +1,11 @@
2010-02-12 Marek Habersack <mhabersack@novell.com>
* AssemblyInfo.cs: added 4.0 attributes
2008-09-09 Atsushi Enomoto <atsushi@ximian.com>
* AssemblyInfo.cs : fixed key file.
2008-09-04 Atsushi Enomoto <atsushi@ximian.com>
* AssemblyInfo.cs : initial checkin.

View File

@@ -0,0 +1,13 @@
2009-06-16 Marek Habersack <mhabersack@novell.com>
* net_4_0_System.Web.Abstractions.dll.sources: added. In the 4.0
profile all classes are compiled into System.Web,
System.Web.Abstractions becomes an empty assembly.
2008-09-09 Atsushi Enomoto <atsushi@ximian.com>
* System.Web.Abstractions_test.dll.sources: new.
2008-09-04 Atsushi Enomoto <atsushi@ximian.com>
* Makefile, System.Web.Abstractions.dll.sources: initial checkin.

View File

@@ -0,0 +1,29 @@
thisdir = class/System.Web.Abstractions
SUBDIRS =
include ../../build/rules.make
LIBRARY = System.Web.Abstractions.dll
LIB_MCS_FLAGS = \
/r:System.dll \
/r:System.Core.dll \
/r:System.Web.dll
ifeq (2.0, $(FRAMEWORK_VERSION))
# This is a .NET 3.5 only assembly, but built during the 2.0 build
LIB_MCS_FLAGS += -d:NET_3_5
endif
TEST_MCS_FLAGS = $(LIB_MCS_FLAGS)
EXTRA_DISTFILES =
# This is a .NET 3.5+ assembly
VALID_PROFILE := $(filter net_2_0 net_4_0 net_4_5, $(PROFILE))
ifndef VALID_PROFILE
LIBRARY_NAME = dummy-System.Web.Abstractions.dll
NO_INSTALL = yes
NO_SIGN_ASSEMBLY = yes
NO_TEST = yes
endif
include ../../build/library.make

View File

@@ -0,0 +1,26 @@
../../build/common/Consts.cs
../../build/common/MonoTODOAttribute.cs
Assembly/AssemblyInfo.cs
System.Web/HttpApplicationStateBase.cs
System.Web/HttpApplicationStateWrapper.cs
System.Web/HttpBrowserCapabilitiesBase.cs
System.Web/HttpBrowserCapabilitiesWrapper.cs
System.Web/HttpCachePolicyBase.cs
System.Web/HttpCachePolicyWrapper.cs
System.Web/HttpContextBase.cs
System.Web/HttpContextWrapper.cs
System.Web/HttpFileCollectionBase.cs
System.Web/HttpFileCollectionWrapper.cs
System.Web/HttpPostedFileBase.cs
System.Web/HttpPostedFileWrapper.cs
System.Web/HttpRequestBase.cs
System.Web/HttpRequestWrapper.cs
System.Web/HttpResponseBase.cs
System.Web/HttpResponseWrapper.cs
System.Web/HttpServerUtilityBase.cs
System.Web/HttpServerUtilityWrapper.cs
System.Web/HttpSessionStateBase.cs
System.Web/HttpSessionStateWrapper.cs
System.Web/HttpStaticObjectsCollectionBase.cs
System.Web/HttpStaticObjectsCollectionWrapper.cs

View File

@@ -0,0 +1,3 @@
../../System.Web.DynamicData/Test/Common/AssertExtensions.cs
System.Web/HttpApplicationStateBaseTest.cs
System.Web/HttpFileCollectionWrapperTest.cs

View File

@@ -0,0 +1,60 @@
2010-05-06 Marek Habersack <mhabersack@novell.com>
* HttpResponseWrapper.cs: implemented RedirectPermantent,
RemoveOutputCacheItem methods.
Implemented the 3 argument TransmitFile method.
* HttpResponseBase.cs: implemented RedirectPermanet,
RedirectToRoute, RedirectToRoutePermanent and
RemoveOutputCacheItem 4.0 methods.
2010-05-05 Marek Habersack <mhabersack@novell.com>
* HttpRequestBase.cs, HttpRequestWrapper.cs: added 4.0 properties
HttpChannelBinding and RequestContext
2010-04-26 Marek Habersack <mhabersack@novell.com>
* HttpContextWrapper.cs: implemented two 4.0 methods: RemapHandler
and SetSessionStateBehavior
2010-02-18 Marek Habersack <mhabersack@novell.com>
* HttpFileCollectionWrapper.cs: Get (string) and this [string]
don't throw ArgumentNullException for non-existing entries. Fixes
bug #579241. Patch from Peter Johanson <peter@peterjohanson.com>,
thanks!
2010-01-20 Marek Habersack <mhabersack@novell.com>
* HttpContextBase.cs: implemented RemapHandler and
SetSessionStateBehavior 4.0 APIs.
2009-07-30 Gonzalo Paniagua Javier <gonzalo@novell.com>
* HttpResponseWrapper.cs: removed a few TODO/NotImplemented.
Fixes bug #526297.
2009-06-16 Marek Habersack <mhabersack@novell.com>
* Decorated all classes with the TypeForwardedFrom attribute for
the 4.0 profile.
2008-09-09 Atsushi Enomoto <atsushi@ximian.com>
* HttpApplicationStateBase.cs
HttpBrowserCapabilitiesBase.cs
HttpCachePolicyBase.cs
HttpContextBase.cs
HttpFileCollectionBase.cs
HttpPostedFileBase.cs
HttpRequestBase.cs
HttpResponseBase.cs
HttpServerUtilityBase.cs
HttpSessionStateBase.cs
HttpStaticObjectsCollectionBase.cs : they are just to throw NIE.
* HttpPostedFileWrapper.cs : lacked implementation.
2008-09-04 Atsushi Enomoto <atsushi@ximian.com>
*.cs : initial checkin.

View File

@@ -0,0 +1,156 @@
//
// HttpApplicationStateBase.cs
//
// Author:
// Atsushi Enomoto <atsushi@ximian.com>
//
// Copyright (C) 2008 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.Collections;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Globalization;
using System.Runtime.CompilerServices;
using System.Security.Permissions;
using System.Security.Principal;
using System.Web.Caching;
namespace System.Web
{
#if NET_4_0
[TypeForwardedFrom ("System.Web.Abstractions, Version=3.5.0.0, Culture=Neutral, PublicKeyToken=31bf3856ad364e35")]
#endif
[AspNetHostingPermission (SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermission (SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
public abstract class HttpApplicationStateBase : NameObjectCollectionBase, ICollection, IEnumerable
{
void NotImplemented ()
{
throw new NotImplementedException ();
}
public virtual string [] AllKeys {
get { NotImplemented (); return null; }
}
public virtual HttpApplicationStateBase Contents {
get { NotImplemented (); return null; }
}
public override int Count {
get { NotImplemented (); return 0; }
}
public virtual bool IsSynchronized {
get { NotImplemented (); return false; }
}
public virtual object this [int index] {
get { return Get (index); }
}
public virtual object this [string name] {
get { return Get (name); }
set { Set (name, value); }
}
public virtual HttpStaticObjectsCollectionBase StaticObjects {
get { NotImplemented (); return null; }
}
public virtual object SyncRoot {
get { NotImplemented (); return null; }
}
public virtual void Add (string name, object value)
{
NotImplemented ();
}
public virtual void Clear ()
{
NotImplemented ();
}
public virtual void CopyTo (Array array, int index)
{
NotImplemented ();
}
public virtual object Get (int index)
{
NotImplemented ();
return null;
}
public virtual object Get (string name)
{
NotImplemented ();
return null;
}
public override IEnumerator GetEnumerator ()
{
NotImplemented ();
return null;
}
public virtual string GetKey (int index)
{
NotImplemented ();
return null;
}
public virtual void Lock ()
{
NotImplemented ();
}
public virtual void Remove (string name)
{
NotImplemented ();
}
public virtual void RemoveAll ()
{
NotImplemented ();
}
public virtual void RemoveAt (int index)
{
NotImplemented ();
}
public virtual void Set (string name, object value)
{
NotImplemented ();
}
public virtual void UnLock ()
{
NotImplemented ();
}
}
}

View File

@@ -0,0 +1,174 @@
//
// HttpApplicationStateWrapper.cs
//
// Author:
// Atsushi Enomoto <atsushi@ximian.com>
//
// Copyright (C) 2008 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.Collections;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Globalization;
using System.Runtime.CompilerServices;
using System.Runtime.Serialization;
using System.Security.Permissions;
using System.Security.Principal;
using System.Web.Caching;
namespace System.Web
{
#if NET_4_0
[TypeForwardedFrom ("System.Web.Abstractions, Version=3.5.0.0, Culture=Neutral, PublicKeyToken=31bf3856ad364e35")]
#endif
[AspNetHostingPermission (SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermission (SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
public class HttpApplicationStateWrapper : HttpApplicationStateBase
{
HttpApplicationState w;
public HttpApplicationStateWrapper (HttpApplicationState httpApplicationState)
{
if (httpApplicationState == null)
throw new ArgumentNullException ("httpApplicationState");
w = httpApplicationState;
}
public override string [] AllKeys {
get { return w.AllKeys; }
}
public override HttpApplicationStateBase Contents {
get { return new HttpApplicationStateWrapper (w.Contents); }
}
public override int Count {
get { return w.Count; }
}
public override bool IsSynchronized {
get { return ((ICollection) this).IsSynchronized; }
}
public override object this [int index] {
get { return Get (index); }
}
public override object this [string name] {
get { return Get (name); }
set { Set (name, value); }
}
public override NameObjectCollectionBase.KeysCollection Keys {
get { return w.Keys; }
}
public override HttpStaticObjectsCollectionBase StaticObjects {
get { return new HttpStaticObjectsCollectionWrapper (w.StaticObjects); }
}
public override object SyncRoot {
get { return ((ICollection) this).SyncRoot; }
}
public override void Add (string name, object value)
{
w.Add (name, value);
}
public override void Clear ()
{
w.Clear ();
}
public override void CopyTo (Array array, int index)
{
((ICollection) this).CopyTo (array, index);
}
public override object Get (int index)
{
return w.Get (index);
}
public override object Get (string name)
{
return w.Get (name);
}
public override IEnumerator GetEnumerator ()
{
return w.GetEnumerator ();
}
public override string GetKey (int index)
{
return w.GetKey (index);
}
[MonoTODO]
public override void GetObjectData (SerializationInfo info, StreamingContext context)
{
w.GetObjectData (info, context);
throw new NotImplementedException ();
}
public override void Lock ()
{
w.Lock ();
}
public override void OnDeserialization (object sender)
{
w.OnDeserialization (sender);
}
public override void Remove (string name)
{
w.Remove (name);
}
public override void RemoveAll ()
{
w.RemoveAll ();
}
public override void RemoveAt (int index)
{
w.RemoveAt (index);
}
public override void Set (string name, object value)
{
w.Set (name, value);
}
public override void UnLock ()
{
w.UnLock ();
}
}
}

View File

@@ -0,0 +1,323 @@
//
// HttpBrowserCapabilitiesBase.cs
//
// Author:
// Atsushi Enomoto <atsushi@ximian.com>
//
// Copyright (C) 2008 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.Collections;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Runtime.CompilerServices;
using System.Security.Permissions;
using System.Security.Principal;
using System.Web.Caching;
using System.Web.UI;
namespace System.Web
{
#if NET_4_0
[TypeForwardedFrom ("System.Web.Abstractions, Version=3.5.0.0, Culture=Neutral, PublicKeyToken=31bf3856ad364e35")]
#endif
[AspNetHostingPermission (SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermission (SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
public abstract class HttpBrowserCapabilitiesBase : IFilterResolutionService
{
void NotImplemented ()
{
throw new NotImplementedException ();
}
public virtual bool ActiveXControls { get { NotImplemented (); return false; } }
public virtual IDictionary Adapters { get { NotImplemented (); return null; } }
public virtual bool AOL { get { NotImplemented (); return false; } }
public virtual bool BackgroundSounds { get { NotImplemented (); return false; } }
public virtual bool Beta { get { NotImplemented (); return false; } }
public virtual string Browser { get { NotImplemented (); return null; } }
public virtual ArrayList Browsers { get { NotImplemented (); return null; } }
public virtual bool CanCombineFormsInDeck { get { NotImplemented (); return false; } }
public virtual bool CanInitiateVoiceCall { get { NotImplemented (); return false; } }
public virtual bool CanRenderAfterInputOrSelectElement { get { NotImplemented (); return false; } }
public virtual bool CanRenderEmptySelects { get { NotImplemented (); return false; } }
public virtual bool CanRenderInputAndSelectElementsTogether { get { NotImplemented (); return false; } }
public virtual bool CanRenderMixedSelects { get { NotImplemented (); return false; } }
public virtual bool CanRenderOneventAndPrevElementsTogether { get { NotImplemented (); return false; } }
public virtual bool CanRenderPostBackCards { get { NotImplemented (); return false; } }
public virtual bool CanRenderSetvarZeroWithMultiSelectionList { get { NotImplemented (); return false; } }
public virtual bool CanSendMail { get { NotImplemented (); return false; } }
public virtual IDictionary Capabilities { get; set; }
public virtual bool CDF { get { NotImplemented (); return false; } }
public virtual Version ClrVersion { get { NotImplemented (); return null; } }
public virtual bool Cookies { get { NotImplemented (); return false; } }
public virtual bool Crawler { get { NotImplemented (); return false; } }
public virtual int DefaultSubmitButtonLimit { get { NotImplemented (); return 0; } }
public virtual Version EcmaScriptVersion { get { NotImplemented (); return null; } }
public virtual bool Frames { get { NotImplemented (); return false; } }
public virtual int GatewayMajorVersion { get { NotImplemented (); return 0; } }
public virtual double GatewayMinorVersion { get { NotImplemented (); return 0; } }
public virtual string GatewayVersion { get { NotImplemented (); return null; } }
public virtual bool HasBackButton { get { NotImplemented (); return false; } }
public virtual bool HidesRightAlignedMultiselectScrollbars { get { NotImplemented (); return false; } }
public virtual string HtmlTextWriter { get; set; }
public virtual string Id { get { NotImplemented (); return null; } }
public virtual string InputType { get { NotImplemented (); return null; } }
public virtual bool IsColor { get { NotImplemented (); return false; } }
public virtual bool IsMobileDevice { get { NotImplemented (); return false; } }
public virtual string this [string key] {
get { throw new NotImplementedException (); }
}
public virtual bool JavaApplets { get { NotImplemented (); return false; } }
public virtual Version JScriptVersion { get { NotImplemented (); return null; } }
public virtual int MajorVersion { get { NotImplemented (); return 0; } }
public virtual int MaximumHrefLength { get { NotImplemented (); return 0; } }
public virtual int MaximumRenderedPageSize { get { NotImplemented (); return 0; } }
public virtual int MaximumSoftkeyLabelLength { get { NotImplemented (); return 0; } }
public virtual double MinorVersion { get { NotImplemented (); return 0; } }
public virtual string MinorVersionString { get { NotImplemented (); return null; } }
public virtual string MobileDeviceManufacturer { get { NotImplemented (); return null; } }
public virtual string MobileDeviceModel { get { NotImplemented (); return null; } }
public virtual Version MSDomVersion { get { NotImplemented (); return null; } }
public virtual int NumberOfSoftkeys { get { NotImplemented (); return 0; } }
public virtual string Platform { get { NotImplemented (); return null; } }
public virtual string PreferredImageMime { get { NotImplemented (); return null; } }
public virtual string PreferredRenderingMime { get { NotImplemented (); return null; } }
public virtual string PreferredRenderingType { get { NotImplemented (); return null; } }
public virtual string PreferredRequestEncoding { get { NotImplemented (); return null; } }
public virtual string PreferredResponseEncoding { get { NotImplemented (); return null; } }
public virtual bool RendersBreakBeforeWmlSelectAndInput { get { NotImplemented (); return false; } }
public virtual bool RendersBreaksAfterHtmlLists { get { NotImplemented (); return false; } }
public virtual bool RendersBreaksAfterWmlAnchor { get { NotImplemented (); return false; } }
public virtual bool RendersBreaksAfterWmlInput { get { NotImplemented (); return false; } }
public virtual bool RendersWmlDoAcceptsInline { get { NotImplemented (); return false; } }
public virtual bool RendersWmlSelectsAsMenuCards { get { NotImplemented (); return false; } }
public virtual string RequiredMetaTagNameValue { get { NotImplemented (); return null; } }
public virtual bool RequiresAttributeColonSubstitution { get { NotImplemented (); return false; } }
public virtual bool RequiresContentTypeMetaTag { get { NotImplemented (); return false; } }
public virtual bool RequiresControlStateInSession { get { NotImplemented (); return false; } }
public virtual bool RequiresDBCSCharacter { get { NotImplemented (); return false; } }
public virtual bool RequiresHtmlAdaptiveErrorReporting { get { NotImplemented (); return false; } }
public virtual bool RequiresLeadingPageBreak { get { NotImplemented (); return false; } }
public virtual bool RequiresNoBreakInFormatting { get { NotImplemented (); return false; } }
public virtual bool RequiresOutputOptimization { get { NotImplemented (); return false; } }
public virtual bool RequiresPhoneNumbersAsPlainText { get { NotImplemented (); return false; } }
public virtual bool RequiresSpecialViewStateEncoding { get { NotImplemented (); return false; } }
public virtual bool RequiresUniqueFilePathSuffix { get { NotImplemented (); return false; } }
public virtual bool RequiresUniqueHtmlCheckboxNames { get { NotImplemented (); return false; } }
public virtual bool RequiresUniqueHtmlInputNames { get { NotImplemented (); return false; } }
public virtual bool RequiresUrlEncodedPostfieldValues { get { NotImplemented (); return false; } }
public virtual int ScreenBitDepth { get { NotImplemented (); return 0; } }
public virtual int ScreenCharactersHeight { get { NotImplemented (); return 0; } }
public virtual int ScreenCharactersWidth { get { NotImplemented (); return 0; } }
public virtual int ScreenPixelsHeight { get { NotImplemented (); return 0; } }
public virtual int ScreenPixelsWidth { get { NotImplemented (); return 0; } }
public virtual bool SupportsAccesskeyAttribute { get { NotImplemented (); return false; } }
public virtual bool SupportsBodyColor { get { NotImplemented (); return false; } }
public virtual bool SupportsBold { get { NotImplemented (); return false; } }
public virtual bool SupportsCacheControlMetaTag { get { NotImplemented (); return false; } }
public virtual bool SupportsCallback { get { NotImplemented (); return false; } }
public virtual bool SupportsCss { get { NotImplemented (); return false; } }
public virtual bool SupportsDivAlign { get { NotImplemented (); return false; } }
public virtual bool SupportsDivNoWrap { get { NotImplemented (); return false; } }
public virtual bool SupportsEmptyStringInCookieValue { get { NotImplemented (); return false; } }
public virtual bool SupportsFontColor { get { NotImplemented (); return false; } }
public virtual bool SupportsFontName { get { NotImplemented (); return false; } }
public virtual bool SupportsFontSize { get { NotImplemented (); return false; } }
public virtual bool SupportsImageSubmit { get { NotImplemented (); return false; } }
public virtual bool SupportsIModeSymbols { get { NotImplemented (); return false; } }
public virtual bool SupportsInputIStyle { get { NotImplemented (); return false; } }
public virtual bool SupportsInputMode { get { NotImplemented (); return false; } }
public virtual bool SupportsItalic { get { NotImplemented (); return false; } }
public virtual bool SupportsJPhoneMultiMediaAttributes { get { NotImplemented (); return false; } }
public virtual bool SupportsJPhoneSymbols { get { NotImplemented (); return false; } }
public virtual bool SupportsQueryStringInFormAction { get { NotImplemented (); return false; } }
public virtual bool SupportsRedirectWithCookie { get { NotImplemented (); return false; } }
public virtual bool SupportsSelectMultiple { get { NotImplemented (); return false; } }
public virtual bool SupportsUncheck { get { NotImplemented (); return false; } }
public virtual bool SupportsXmlHttp { get { NotImplemented (); return false; } }
public virtual bool Tables { get { NotImplemented (); return false; } }
public virtual Type TagWriter { get { NotImplemented (); return null; } }
public virtual string Type { get { NotImplemented (); return null; } }
public virtual bool UseOptimizedCacheKey { get { NotImplemented (); return false; } }
public virtual bool VBScript { get { NotImplemented (); return false; } }
public virtual string Version { get { NotImplemented (); return null; } }
public virtual Version W3CDomVersion { get { NotImplemented (); return null; } }
public virtual bool Win16 { get { NotImplemented (); return false; } }
public virtual bool Win32 { get { NotImplemented (); return false; } }
public virtual void AddBrowser (string browserName)
{
NotImplemented ();
}
public virtual int CompareFilters (string filter1, string filter2)
{
NotImplemented ();
return 0;
}
public virtual HtmlTextWriter CreateHtmlTextWriter (TextWriter w)
{
NotImplemented ();
return null;
}
public virtual void DisableOptimizedCacheKey ()
{
NotImplemented ();
}
public virtual bool EvaluateFilter (string filterName)
{
NotImplemented ();
return false;
}
public virtual Version [] GetClrVersions ()
{
NotImplemented ();
return null;
}
public virtual bool IsBrowser (string browserName)
{
NotImplemented ();
return false;
}
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,159 @@
//
// HttpCachePolicyBase.cs
//
// Author:
// Atsushi Enomoto <atsushi@ximian.com>
//
// Copyright (C) 2008 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.Collections;
using System.Collections.Generic;
using System.Globalization;
using System.Runtime.CompilerServices;
using System.Security.Permissions;
using System.Security.Principal;
using System.Web.Caching;
namespace System.Web
{
#if NET_4_0
[TypeForwardedFrom ("System.Web.Abstractions, Version=3.5.0.0, Culture=Neutral, PublicKeyToken=31bf3856ad364e35")]
#endif
[AspNetHostingPermission (SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermission (SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
public abstract class HttpCachePolicyBase
{
void NotImplemented ()
{
throw new NotImplementedException ();
}
public virtual HttpCacheVaryByContentEncodings VaryByContentEncodings { get { NotImplemented (); return null; } }
public virtual HttpCacheVaryByHeaders VaryByHeaders { get { NotImplemented (); return null; } }
public virtual HttpCacheVaryByParams VaryByParams { get { NotImplemented (); return null; } }
public virtual void AddValidationCallback (HttpCacheValidateHandler handler, object data)
{
NotImplemented ();
}
public virtual void AppendCacheExtension (string extension)
{
NotImplemented ();
}
public virtual void SetAllowResponseInBrowserHistory (bool allow)
{
NotImplemented ();
}
public virtual void SetCacheability (HttpCacheability cacheability)
{
NotImplemented ();
}
public virtual void SetCacheability (HttpCacheability cacheability, string field)
{
NotImplemented ();
}
public virtual void SetETag (string etag)
{
NotImplemented ();
}
public virtual void SetETagFromFileDependencies ()
{
NotImplemented ();
}
public virtual void SetExpires (DateTime date)
{
NotImplemented ();
}
public virtual void SetLastModified (DateTime date)
{
NotImplemented ();
}
public virtual void SetLastModifiedFromFileDependencies ()
{
NotImplemented ();
}
public virtual void SetMaxAge (TimeSpan delta)
{
NotImplemented ();
}
public virtual void SetNoServerCaching ()
{
NotImplemented ();
}
public virtual void SetNoStore ()
{
NotImplemented ();
}
public virtual void SetNoTransforms ()
{
NotImplemented ();
}
public virtual void SetOmitVaryStar (bool omit)
{
NotImplemented ();
}
public virtual void SetProxyMaxAge (TimeSpan delta)
{
NotImplemented ();
}
public virtual void SetRevalidation (HttpCacheRevalidation revalidation)
{
NotImplemented ();
}
public virtual void SetSlidingExpiration (bool slide)
{
NotImplemented ();
}
public virtual void SetValidUntilExpires (bool validUntilExpires)
{
NotImplemented ();
}
public virtual void SetVaryByCustom (string custom)
{
NotImplemented ();
}
}
}

View File

@@ -0,0 +1,169 @@
//
// HttpCachePolicyWrapper.cs
//
// Author:
// Atsushi Enomoto <atsushi@ximian.com>
//
// Copyright (C) 2008 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.Collections;
using System.Collections.Generic;
using System.Globalization;
using System.Runtime.CompilerServices;
using System.Security.Permissions;
using System.Security.Principal;
using System.Web.Caching;
namespace System.Web
{
#if NET_4_0
[TypeForwardedFrom ("System.Web.Abstractions, Version=3.5.0.0, Culture=Neutral, PublicKeyToken=31bf3856ad364e35")]
#endif
[AspNetHostingPermission (SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermission (SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
public class HttpCachePolicyWrapper : HttpCachePolicyBase
{
HttpCachePolicy w;
public HttpCachePolicyWrapper (HttpCachePolicy httpCachePolicy)
{
if (httpCachePolicy == null)
throw new ArgumentNullException ("httpCachePolicy");
w = httpCachePolicy;
}
public override HttpCacheVaryByContentEncodings VaryByContentEncodings {
get { return w.VaryByContentEncodings; }
}
public override HttpCacheVaryByHeaders VaryByHeaders {
get { return w.VaryByHeaders; }
}
public override HttpCacheVaryByParams VaryByParams {
get { return w.VaryByParams; }
}
public override void AddValidationCallback (HttpCacheValidateHandler handler, object data)
{
w.AddValidationCallback (handler, data);
}
public override void AppendCacheExtension (string extension)
{
w.AppendCacheExtension (extension);
}
public override void SetAllowResponseInBrowserHistory (bool allow)
{
w.SetAllowResponseInBrowserHistory (allow);
}
public override void SetCacheability (HttpCacheability cacheability)
{
w.SetCacheability (cacheability);
}
public override void SetCacheability (HttpCacheability cacheability, string field)
{
w.SetCacheability (cacheability, field);
}
public override void SetVaryByCustom (string custom)
{
w.SetVaryByCustom (custom);
}
public override void SetETag (string etag)
{
w.SetETag (etag);
}
public override void SetETagFromFileDependencies ()
{
w.SetETagFromFileDependencies ();
}
public override void SetExpires (DateTime date)
{
w.SetExpires (date);
}
public override void SetLastModified (DateTime date)
{
w.SetLastModified (date);
}
public override void SetLastModifiedFromFileDependencies ()
{
w.SetLastModifiedFromFileDependencies ();
}
public override void SetMaxAge (TimeSpan delta)
{
w.SetMaxAge (delta);
}
public override void SetNoServerCaching ()
{
w.SetNoServerCaching ();
}
public override void SetNoStore ()
{
w.SetNoStore ();
}
public override void SetNoTransforms ()
{
w.SetNoTransforms ();
}
public override void SetOmitVaryStar (bool omit)
{
w.SetOmitVaryStar (omit);
}
public override void SetProxyMaxAge (TimeSpan delta)
{
w.SetProxyMaxAge (delta);
}
public override void SetRevalidation (HttpCacheRevalidation revalidation)
{
w.SetRevalidation (revalidation);
}
public override void SetSlidingExpiration (bool slide)
{
w.SetSlidingExpiration (slide);
}
public override void SetValidUntilExpires (bool validUntilExpires)
{
w.SetValidUntilExpires (validUntilExpires);
}
}
}

View File

@@ -0,0 +1,176 @@
//
// HttpContextBase.cs
//
// Author:
// Atsushi Enomoto <atsushi@ximian.com>
//
// Copyright (C) 2008 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.Collections;
using System.Collections.Generic;
using System.Globalization;
using System.Runtime.CompilerServices;
using System.Security.Permissions;
using System.Security.Principal;
using System.Web.Caching;
using System.Web.Profile;
using System.Web.SessionState;
namespace System.Web
{
#if NET_4_0
[TypeForwardedFrom ("System.Web.Abstractions, Version=3.5.0.0, Culture=Neutral, PublicKeyToken=31bf3856ad364e35")]
#endif
[AspNetHostingPermission (SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermission (SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
public abstract class HttpContextBase : IServiceProvider
{
void NotImplemented ()
{
throw new NotImplementedException ();
}
public virtual Exception [] AllErrors { get { NotImplemented (); return null; } }
public virtual HttpApplicationStateBase Application { get { NotImplemented (); return null; } }
public virtual HttpApplication ApplicationInstance { get { NotImplemented (); return null; } set { NotImplemented (); } }
public virtual Cache Cache { get { NotImplemented (); return null; } }
public virtual IHttpHandler CurrentHandler { get { NotImplemented (); return null; } }
public virtual RequestNotification CurrentNotification { get { NotImplemented (); return default (RequestNotification); } }
public virtual Exception Error { get { NotImplemented (); return null; } }
public virtual IHttpHandler Handler { get { NotImplemented (); return null; } set { NotImplemented (); } }
public virtual bool IsCustomErrorEnabled { get { NotImplemented (); return false; } }
public virtual bool IsDebuggingEnabled { get { NotImplemented (); return false; } }
public virtual bool IsPostNotification { get { NotImplemented (); return false; } }
public virtual IDictionary Items { get { NotImplemented (); return null; } }
public virtual IHttpHandler PreviousHandler { get { NotImplemented (); return null; } }
public virtual ProfileBase Profile { get { NotImplemented (); return null; } }
public virtual HttpRequestBase Request { get { NotImplemented (); return null; } }
public virtual HttpResponseBase Response { get { NotImplemented (); return null; } }
public virtual HttpServerUtilityBase Server { get { NotImplemented (); return null; } }
public virtual HttpSessionStateBase Session { get { NotImplemented (); return null; } }
public virtual bool SkipAuthorization { get { NotImplemented (); return false; } set { NotImplemented (); } }
public virtual DateTime Timestamp { get { NotImplemented (); return DateTime.MinValue; } }
public virtual TraceContext Trace { get { NotImplemented (); return null; } }
public virtual IPrincipal User { get { NotImplemented (); return null; } set { NotImplemented (); } }
public virtual void AddError (Exception errorInfo)
{
NotImplemented ();
}
public virtual void ClearError ()
{
NotImplemented ();
}
public virtual object GetGlobalResourceObject (string classKey, string resourceKey)
{
NotImplemented ();
return null;
}
public virtual object GetGlobalResourceObject (string classKey, string resourceKey, CultureInfo culture)
{
NotImplemented ();
return null;
}
public virtual object GetLocalResourceObject (string virtualPath, string resourceKey)
{
NotImplemented ();
return null;
}
public virtual object GetLocalResourceObject (string virtualPath, string resourceKey, CultureInfo culture)
{
NotImplemented ();
return null;
}
public virtual object GetSection (string sectionName)
{
NotImplemented ();
return null;
}
public virtual object GetService (Type serviceType)
{
NotImplemented ();
return null;
}
#if NET_4_0
public virtual void RemapHandler (IHttpHandler handler)
{
NotImplemented ();
}
#endif
public virtual void RewritePath (string path)
{
NotImplemented ();
}
public virtual void RewritePath (string path, bool rebaseClientPath)
{
NotImplemented ();
}
public virtual void RewritePath (string filePath, string pathInfo, string queryString)
{
NotImplemented ();
}
public virtual void RewritePath (string filePath, string pathInfo, string queryString, bool setClientFilePath)
{
NotImplemented ();
}
#if NET_4_0
public virtual void SetSessionStateBehavior (SessionStateBehavior sessionStateBehavior)
{
NotImplemented ();
}
#endif
}
}

View File

@@ -0,0 +1,223 @@
//
// HttpContextWrapper.cs
//
// Author:
// Atsushi Enomoto <atsushi@ximian.com>
//
// Copyright (C) 2008-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.Collections;
using System.Collections.Generic;
using System.Globalization;
using System.Runtime.CompilerServices;
using System.Security.Permissions;
using System.Security.Principal;
using System.Web.Caching;
using System.Web.Profile;
using System.Web.SessionState;
namespace System.Web
{
#if NET_4_0
[TypeForwardedFrom ("System.Web.Abstractions, Version=3.5.0.0, Culture=Neutral, PublicKeyToken=31bf3856ad364e35")]
#endif
[AspNetHostingPermission (SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermission (SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
public class HttpContextWrapper : HttpContextBase
{
HttpContext w;
public HttpContextWrapper (HttpContext httpContext)
{
if (httpContext == null)
throw new ArgumentNullException ("httpContext");
w = httpContext;
}
public override Exception [] AllErrors {
get { return w.AllErrors; }
}
public override HttpApplicationStateBase Application {
get { return new HttpApplicationStateWrapper (w.Application); }
}
public override HttpApplication ApplicationInstance {
get { return w.ApplicationInstance; }
set { w.ApplicationInstance = value; }
}
public override Cache Cache {
get { return w.Cache; }
}
public override IHttpHandler CurrentHandler {
get { return w.CurrentHandler; }
}
public override RequestNotification CurrentNotification {
get { return w.CurrentNotification; }
}
public override Exception Error {
get { return w.Error; }
}
public override IHttpHandler Handler {
get { return w.Handler; }
set { w.Handler = value; }
}
public override bool IsCustomErrorEnabled {
get { return w.IsCustomErrorEnabled; }
}
public override bool IsDebuggingEnabled {
get { return w.IsDebuggingEnabled; }
}
public override bool IsPostNotification {
get { return w.IsPostNotification; }
}
public override IDictionary Items {
get { return w.Items; }
}
public override IHttpHandler PreviousHandler {
get { return w.PreviousHandler; }
}
public override ProfileBase Profile {
get { return w.Profile; }
}
public override HttpRequestBase Request {
get { return new HttpRequestWrapper (w.Request); }
}
public override HttpResponseBase Response {
get { return new HttpResponseWrapper (w.Response); }
}
public override HttpServerUtilityBase Server {
get { return new HttpServerUtilityWrapper (w.Server); }
}
public override HttpSessionStateBase Session {
get { return w.Session == null ? null : new HttpSessionStateWrapper (w.Session); }
}
public override bool SkipAuthorization {
get { return w.SkipAuthorization; }
set { w.SkipAuthorization = value; }
}
public override DateTime Timestamp {
get { return w.Timestamp; }
}
public override TraceContext Trace {
get { return w.Trace; }
}
public override IPrincipal User {
get { return w.User; }
set { w.User = value; }
}
public override void AddError (Exception errorInfo)
{
w.AddError (errorInfo);
}
public override void ClearError ()
{
w.ClearError ();
}
public override object GetGlobalResourceObject (string classKey, string resourceKey)
{
return HttpContext.GetGlobalResourceObject (classKey, resourceKey);
}
public override object GetGlobalResourceObject (string classKey, string resourceKey, CultureInfo culture)
{
return HttpContext.GetGlobalResourceObject (classKey, resourceKey, culture);
}
public override object GetLocalResourceObject (string overridePath, string resourceKey)
{
return HttpContext.GetLocalResourceObject (overridePath, resourceKey);
}
public override object GetLocalResourceObject (string overridePath, string resourceKey, CultureInfo culture)
{
return HttpContext.GetLocalResourceObject (overridePath, resourceKey, culture);
}
public override object GetSection (string sectionName)
{
return w.GetSection (sectionName);
}
[MonoTODO]
public override object GetService (Type serviceType)
{
throw new NotImplementedException ();
}
#if NET_4_0
public override void RemapHandler (IHttpHandler handler)
{
w.RemapHandler (handler);
}
#endif
public override void RewritePath (string path)
{
w.RewritePath (path);
}
public override void RewritePath (string path, bool rebaseClientPath)
{
w.RewritePath (path, rebaseClientPath);
}
public override void RewritePath (string filePath, string pathInfo, string queryString)
{
w.RewritePath (filePath, pathInfo, queryString);
}
public override void RewritePath (string filePath, string pathInfo, string queryString, bool setClientFilePath)
{
w.RewritePath (filePath, pathInfo, queryString, setClientFilePath);
}
#if NET_4_0
public override void SetSessionStateBehavior (SessionStateBehavior sessionStateBehavior)
{
w.SetSessionStateBehavior (sessionStateBehavior);
}
#endif
}
}

View File

@@ -0,0 +1,101 @@
//
// HttpFileCollectionBase.cs
//
// Author:
// Atsushi Enomoto <atsushi@ximian.com>
//
// Copyright (C) 2008 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.Collections;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Globalization;
using System.Runtime.CompilerServices;
using System.Security.Permissions;
using System.Security.Principal;
using System.Web.Caching;
namespace System.Web
{
#if NET_4_0
[TypeForwardedFrom ("System.Web.Abstractions, Version=3.5.0.0, Culture=Neutral, PublicKeyToken=31bf3856ad364e35")]
#endif
[AspNetHostingPermission (SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermission (SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
public abstract class HttpFileCollectionBase : NameObjectCollectionBase, ICollection, IEnumerable
{
void NotImplemented ()
{
throw new NotImplementedException ();
}
public virtual string [] AllKeys { get { NotImplemented (); return null; } }
public override int Count {
get { NotImplemented (); return 0; }
}
public virtual bool IsSynchronized { get { NotImplemented (); return false; } }
public virtual HttpPostedFileBase this [int index] {
get { return Get (index); }
}
public virtual HttpPostedFileBase this [string name] {
get { return Get (name); }
}
public virtual object SyncRoot { get { NotImplemented (); return null; } }
public virtual void CopyTo (Array dest, int index)
{
NotImplemented ();
}
public virtual HttpPostedFileBase Get (int index)
{
NotImplemented ();
return null;
}
public virtual HttpPostedFileBase Get (string name)
{
NotImplemented ();
return null;
}
public override IEnumerator GetEnumerator ()
{
NotImplemented ();
return null;
}
public virtual string GetKey (int index)
{
NotImplemented ();
return null;
}
}
}

View File

@@ -0,0 +1,130 @@
//
// HttpFileCollectionWrapper.cs
//
// Author:
// Atsushi Enomoto <atsushi@ximian.com>
//
// Copyright (C) 2008 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.Collections;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Globalization;
using System.Runtime.CompilerServices;
using System.Runtime.Serialization;
using System.Security.Permissions;
using System.Security.Principal;
using System.Web.Caching;
namespace System.Web
{
#if NET_4_0
[TypeForwardedFrom ("System.Web.Abstractions, Version=3.5.0.0, Culture=Neutral, PublicKeyToken=31bf3856ad364e35")]
#endif
[AspNetHostingPermission (SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermission (SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
public class HttpFileCollectionWrapper : HttpFileCollectionBase
{
HttpFileCollection w;
public HttpFileCollectionWrapper (HttpFileCollection httpFileCollection)
{
if (httpFileCollection == null)
throw new ArgumentNullException ("httpFileCollection");
w = httpFileCollection;
}
public override string [] AllKeys {
get { return w.AllKeys; }
}
public override int Count {
get { return w.Count; }
}
public override bool IsSynchronized {
get { return ((ICollection) w).IsSynchronized; }
}
public override HttpPostedFileBase this [int index] {
get { return Get (index); }
}
public override HttpPostedFileBase this [string name] {
get { return Get (name); }
}
public override NameObjectCollectionBase.KeysCollection Keys {
get { return w.Keys; }
}
public override object SyncRoot {
get { return ((ICollection) w).SyncRoot; }
}
public override void CopyTo (Array dest, int index)
{
w.CopyTo (dest, index);
}
public override HttpPostedFileBase Get (int index)
{
HttpPostedFile file = w.Get (index);
if (file == null)
return null;
return new HttpPostedFileWrapper (file);
}
public override HttpPostedFileBase Get (string name)
{
HttpPostedFile file = w.Get (name);
if (file == null)
return null;
return new HttpPostedFileWrapper (file);
}
public override IEnumerator GetEnumerator ()
{
return w.GetEnumerator ();
}
public override string GetKey (int index)
{
return w.GetKey (index);
}
public override void GetObjectData (SerializationInfo info, StreamingContext context)
{
w.GetObjectData (info, context);
}
public override void OnDeserialization (object sender)
{
w.OnDeserialization (sender);
}
}
}

View File

@@ -0,0 +1,66 @@
//
// HttpPostedFileBase.cs
//
// Author:
// Atsushi Enomoto <atsushi@ximian.com>
//
// Copyright (C) 2008 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.Collections;
using System.Collections.Generic;
using System.IO;
using System.Runtime.CompilerServices;
using System.Security.Permissions;
using System.Security.Principal;
using System.Web.Caching;
namespace System.Web
{
#if NET_4_0
[TypeForwardedFrom ("System.Web.Abstractions, Version=3.5.0.0, Culture=Neutral, PublicKeyToken=31bf3856ad364e35")]
#endif
[AspNetHostingPermission (SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermission (SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
public abstract class HttpPostedFileBase
{
void NotImplemented ()
{
throw new NotImplementedException ();
}
public virtual int ContentLength { get { NotImplemented (); return 0; } }
public virtual string ContentType { get { NotImplemented (); return null; } }
public virtual string FileName { get { NotImplemented (); return null; } }
public virtual Stream InputStream { get { NotImplemented (); return null; } }
public virtual void SaveAs (string filename)
{
NotImplemented ();
}
}
}

View File

@@ -0,0 +1,78 @@
//
// HttpPostedFileWrapper.cs
//
// Author:
// Atsushi Enomoto <atsushi@ximian.com>
//
// Copyright (C) 2008 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.Collections;
using System.Collections.Generic;
using System.IO;
using System.Runtime.CompilerServices;
using System.Security.Permissions;
using System.Security.Principal;
using System.Web.Caching;
namespace System.Web
{
#if NET_4_0
[TypeForwardedFrom ("System.Web.Abstractions, Version=3.5.0.0, Culture=Neutral, PublicKeyToken=31bf3856ad364e35")]
#endif
[AspNetHostingPermission (SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermission (SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
public class HttpPostedFileWrapper : HttpPostedFileBase
{
HttpPostedFile w;
public HttpPostedFileWrapper (HttpPostedFile httpPostedFile)
{
if (httpPostedFile == null)
throw new ArgumentNullException ("httpPostedFile");
w = httpPostedFile;
}
public override int ContentLength {
get { return w.ContentLength; }
}
public override string ContentType {
get { return w.ContentType; }
}
public override string FileName {
get { return w.FileName; }
}
public override Stream InputStream {
get { return w.InputStream; }
}
public override void SaveAs (string filename)
{
w.SaveAs (filename);
}
}
}

View File

@@ -0,0 +1,186 @@
//
// HttpRequestBase.cs
//
// Author:
// Atsushi Enomoto <atsushi@ximian.com>
//
// Copyright (C) 2008 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.Collections;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Globalization;
using System.IO;
using System.Runtime.CompilerServices;
using System.Runtime.Serialization;
using System.Security.Permissions;
using System.Security.Principal;
using System.Text;
using System.Web.Caching;
#if NET_4_0
using System.Security.Authentication.ExtendedProtection;
using System.Web.Routing;
#endif
namespace System.Web
{
#if NET_4_0
[TypeForwardedFrom ("System.Web.Abstractions, Version=3.5.0.0, Culture=Neutral, PublicKeyToken=31bf3856ad364e35")]
#endif
[AspNetHostingPermission (SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermission (SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
public abstract class HttpRequestBase
{
void NotImplemented ()
{
throw new NotImplementedException ();
}
public virtual string [] AcceptTypes { get { NotImplemented (); return null; } }
public virtual string AnonymousID { get { NotImplemented (); return null; } }
public virtual string ApplicationPath { get { NotImplemented (); return null; } }
public virtual string AppRelativeCurrentExecutionFilePath { get { NotImplemented (); return null; } }
public virtual HttpBrowserCapabilitiesBase Browser { get { NotImplemented (); return null; } }
public virtual HttpClientCertificate ClientCertificate { get { NotImplemented (); return null; } }
public virtual Encoding ContentEncoding { get { NotImplemented (); return null; } set { NotImplemented (); } }
public virtual int ContentLength { get { NotImplemented (); return 0; } }
public virtual string ContentType { get { NotImplemented (); return null; } set { NotImplemented (); } }
public virtual HttpCookieCollection Cookies { get { NotImplemented (); return null; } }
public virtual string CurrentExecutionFilePath { get { NotImplemented (); return null; } }
public virtual string FilePath { get { NotImplemented (); return null; } }
public virtual HttpFileCollectionBase Files { get { NotImplemented (); return null; } }
public virtual Stream Filter { get { NotImplemented (); return null; } set { NotImplemented (); } }
public virtual NameValueCollection Form { get { NotImplemented (); return null; } }
public virtual NameValueCollection Headers { get { NotImplemented (); return null; } }
public virtual string HttpMethod { get { NotImplemented (); return null; } }
public virtual Stream InputStream { get { NotImplemented (); return null; } }
#if NET_4_0
// LAMESPEC: MSDN says NotImplementedException is thrown only when the request is
// not IIS7WorkerRequest or ISAPIWorkerRequestInProc, but it is thrown always.
public virtual ChannelBinding HttpChannelBinding { get { NotImplemented (); return null; } }
#endif
public virtual bool IsAuthenticated { get { NotImplemented (); return false; } }
public virtual bool IsLocal { get { NotImplemented (); return false; } }
public virtual bool IsSecureConnection { get { NotImplemented (); return false; } }
public virtual string this [string key] {
get { throw new NotImplementedException (); }
}
public virtual WindowsIdentity LogonUserIdentity { get { NotImplemented (); return null; } }
public virtual NameValueCollection Params { get { NotImplemented (); return null; } }
public virtual string Path { get { NotImplemented (); return null; } }
public virtual string PathInfo { get { NotImplemented (); return null; } }
public virtual string PhysicalApplicationPath { get { NotImplemented (); return null; } }
public virtual string PhysicalPath { get { NotImplemented (); return null; } }
public virtual NameValueCollection QueryString { get { NotImplemented (); return null; } }
public virtual string RawUrl { get { NotImplemented (); return null; } }
public virtual string RequestType { get { NotImplemented (); return null; } set { NotImplemented (); } }
#if NET_4_0
public virtual RequestContext RequestContext {
get { NotImplemented (); return null; }
internal set { NotImplemented (); }
}
#endif
public virtual NameValueCollection ServerVariables { get { NotImplemented (); return null; } }
public virtual int TotalBytes { get { NotImplemented (); return 0; } }
public virtual Uri Url { get { NotImplemented (); return null; } }
public virtual Uri UrlReferrer { get { NotImplemented (); return null; } }
public virtual string UserAgent { get { NotImplemented (); return null; } }
public virtual string UserHostAddress { get { NotImplemented (); return null; } }
public virtual string UserHostName { get { NotImplemented (); return null; } }
public virtual string [] UserLanguages { get { NotImplemented (); return null; } }
public virtual byte [] BinaryRead (int count)
{
NotImplemented ();
return null;
}
public virtual int [] MapImageCoordinates (string imageFieldName)
{
NotImplemented ();
return null;
}
public virtual string MapPath (string virtualPath)
{
NotImplemented ();
return null;
}
public virtual string MapPath (string virtualPath, string baseVirtualDir, bool allowCrossAppMapping)
{
NotImplemented ();
return null;
}
public virtual void SaveAs (string filename, bool includeHeaders)
{
NotImplemented ();
}
public virtual void ValidateInput ()
{
NotImplemented ();
}
}
}

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