19 Commits
Author SHA1 Message Date
Mikayla Hutchinson 1688f5d0c6 [System.Web] Implement HostingEnvironment.QueueBackgroundWorkItem
From reference source.

This is required for the Azure Functions Host to run unmodified.
2017-03-30 19:05:04 +02:00
Matthias Bogad 58e0608c10 [System.Web] ASP.Net MVC5 missing methods fixed
I have added System.HttpApplication.RegisterModule(), the missing two properties of the System.Web.Routing.RouteCollection as well as the corresponding property in the HttpRuntimeSection to completely turn this off. Microsofts MIT-Licensed counterparts of the official System.Web assembly from github [0] were used as a reference. It is kind-of bolted on, but should be good enough until the whole open-sourced System.Web is incorporated. It should at least get the default MVC5 Template from Visual Studio 2013 up and running, once the async pipeline for the owin stuff is fixed.

[0]: http://github.com/Microsoft/referencesource/

Additionally, the MissingMethodException "get_InClientBuildManager" in System.Web.Hosting.HostingEnvironment was fixed.
In this commit, the following bugs were fixed:
https://bugzilla.xamarin.com/show_bug.cgi?id=21810
https://bugzilla.xamarin.com/show_bug.cgi?id=16475
2015-06-09 14:06:52 +02:00
Zoltan Varga 0985d4aa4b [bcl] Remove NET_2_0 defines from the class libs. This has been done using: unifdef -t -DNET_2_0 -o <filename> <filename>. 2015-01-13 15:29:38 -05:00
Joerg Rosenkranz f927c83afe Prevent NullReferenceException in case of missing Host
Do not throw a NullReferenceException when Host variable is not set.
Ignore the calls to RegisterObject and UnregisterObject instead.
2014-10-10 16:23:22 +02:00
Marek Habersack 85db63d06f 2010-02-18 Marek Habersack <[email protected]>
* HostingEnvironment.cs: removed SetHostingId and added internal
	setters to the SiteName and IsHosted properties.

	* ApplicationManager.cs: CreateHost doesn't have to call set
	HostingEnvironment.IsHosted, it is done in
	ApplicationHost.CreateApplicationHost.

	* ApplicationHost.cs: set the ".appId" item in the new appdomain's
	data, so that HttpRuntime.AppDomainAppId returns a non-null
	value.
	Set HostingEnvironment.{IsHosted, SiteName} in the new appdomain
	instead of the original one.

	All of the above fix bug #578880

2010-02-18  Marek Habersack  <[email protected]>

	* HostingEnvironmentTest.cs: added a test for HostEnvironment
	property values both in hosted and non-hosted environments. Patch
	contributed by Tiaan Geldenhuys <[email protected]>, thanks!

svn path=/trunk/mcs/; revision=151983
2010-02-18 13:29:56 +00:00
Marek Habersack 04bfff9c53 2009-09-07 Marek Habersack <[email protected]>
* HostingEnvironment.cs: MapPath checks if HttpContext.Request
	actually exists before using it.

2009-09-07  Marek Habersack  <[email protected]>

	* XmlSiteMapProviderTest.cs: added

	* StaticSiteMapProviderTest.cs: added test for FindSiteMapNode

2009-09-07  Marek Habersack  <[email protected]>

	* XmlSiteMapProvider.cs: do not allow the provider to be
	intialized more than once.
	Initialize throws if it finds unknown attributes in the
	'attributes' collection.
	AddNode checks its arguments and throws if they are null or aren't
	from the same provider.
	FindStartingNode throws exceptions in several erroneous situations
	now.
	Added private method GetConfigDocument which performs several
	checks on the source .sitemap file and throws exceptions if it
	finds any errors.
	BuildSiteMap clears provider state before building the map.
	BuildSiteMapRecursive correctly deals with custom providers. Fixes
	bug #465696
	FindSiteMapNode maps url before searching. Fixes bug #465696

	* VirtualPathUtility.cs: Combine a bit more efficient

	* StaticSiteMapProvider.cs: FindSiteMap node checks if rawUrl is
	relative to application root and if yes, makes it absolute.
	MapUrl converts both rooted and not rooted urls to absolute.

	* SiteMapProvider.cs: check if HttpContext.Request exists before
	using it in FindSiteMapnode

	* SiteMap.cs: Providers collection must be read-only.

2009-09-07  Marek Habersack  <[email protected]>

	* Makefile (TEST_RESOURCE_FILES): added
	Test/mainsoft/NunitWeb/NunitWeb/Resources/sub_map_01.sitemap
	Test/mainsoft/NunitWeb/NunitWeb/Resources/test_map_01.sitemap
	Test/mainsoft/NunitWeb/NunitWeb/Resources/test_map_02.sitemap
	Test/mainsoft/NunitWeb/NunitWeb/Resources/test_map_03.sitemap
	Test/mainsoft/NunitWeb/NunitWeb/Resources/test_map_04.sitemap
	Test/mainsoft/NunitWeb/NunitWeb/Resources/test_map_05.sitemap
	Test/mainsoft/NunitWeb/NunitWeb/Resources/test_map_06.sitemap
	Test/mainsoft/NunitWeb/NunitWeb/Resources/test_map_07.sitemap
	Test/mainsoft/NunitWeb/NunitWeb/Resources/test_map_08.sitemap
	Test/mainsoft/NunitWeb/NunitWeb/Resources/test_map_09.sitemap

2009-09-07  Marek Habersack  <[email protected]>

	* Tests/TestSiteMapProvider.cs: added

svn path=/trunk/mcs/; revision=141420
2009-09-07 11:07:43 +00:00
Marek Habersack 9a0870f6a1 Hush compilation warnings
svn path=/trunk/mcs/; revision=135050
2009-05-29 07:48:14 +00:00
Marek Habersack 42434ae85f 2008-03-31 Marek Habersack <[email protected]>
* StaticFileHandler.cs: added code to use custom
	VirtualPathProvider, if present, to serve files from virtual
	storage.

	* HttpResponse.cs: added two internal TransmitFile overloads which
	take a VirtualFile as a parameter.

2008-04-01  Marek Habersack  <[email protected]>

	* HostingEnvironment.cs: initialize custom VPP on
	registration.
	Added an internal boolena property to signal if we're using a
	custom VPP or not (HaveCustomVPP)


svn path=/trunk/mcs/; revision=99479
2008-03-31 22:03:33 +00:00
Marek Habersack 5d4d81884e 2007-07-12 Marek Habersack <[email protected]>
* HostingEnvironment.cs: allow relative paths to be
	passed. Matches both MSDN and the MS.NET behavior. Fixes bug
	#82061.

svn path=/trunk/mcs/; revision=81864
2007-07-12 12:09:08 +00:00
Marek Habersack ecd1522dce two methods implemented
svn path=/trunk/mcs/; revision=69921
2006-12-22 01:20:34 +00:00
Miguel de Icaza 8616a7e405 2006-11-28 Miguel de Icaza <[email protected]>
* Rationalize the user of MonoTODOs.  

		- Removed all the TODOs that were only overwritten methods
		and had no further information.

		- Methods that threw exceptions now have the message "Not
		implemnted".

		- Methods that return some constant are declared like
		that.

		- Removed a bunch of stale MonoTODOs that had not been
		removed. 


svn path=/trunk/mcs/; revision=68620
2006-11-28 22:15:23 +00:00
Gonzalo Paniagua Javier 03c2339635 2006-02-28 Gonzalo Paniagua Javier <[email protected]>
* ApplicationManager.cs: implemented ShutdownAll().
	* HostingEnvironment.cs: remove MonoTODO.


svn path=/trunk/mcs/; revision=57406
2006-02-28 17:30:03 +00:00
Gonzalo Paniagua Javier fec2447c21 2006-02-22 Gonzalo Paniagua Javier <[email protected]>
* BareApplicationHost.cs: class used as an entry point into each
	application domiain from the ApplicationManager.
	* ApplicationManager.cs: implemented most of the remaining methods.
	* HostingEnvironment.cs: object handling methods are now implemented.


svn path=/trunk/mcs/; revision=57178
2006-02-22 21:28:13 +00:00
Gonzalo Paniagua Javier 6be4ffb621 2006-02-10 Gonzalo Paniagua Javier <[email protected]>
* System.Web.Configuration_2.0/Compiler.cs:
	* System.Web.Configuration_2.0/CompilerCollection.cs: removed
	compatibility code.

	* System.Web.Configuration_2.0/BuildProviderCollection.cs: add
	GetProviderForExtension().

	* System.Web.UI/IThemeResolutionService.cs: this is now added to the
	sources file, but some other stuff does not compile yet as the
	interface changed after the beta.

	* System.Web.UI/ObjectConverter.cs: removed extra attribute.

	* System.Web.UI/ObjectStateFormatter.cs: add IStateFormatter for 2.0.

	* System.Web.UI/ICallbackEventHandler.cs: update the interface, but
	commented the 'good' stuff out, since other files need to be fixed
	too.

	* System.Web.dll.sources: add new files.

	* System.Web.Configuration/CompilationConfiguration.cs:
	* System.Web.Configuration/CompilationConfigurationHandler.cs: only
	compile these for pre-2.0 assemblies.

	* System.Web.Hosting/DefaultVirtualPathProvider.cs: add some
	comments/TODO.
	* System.Web.Hosting/HostingEnvironment.cs: initialize the
	default value for VirtualPathProvider.

	* System.Web.Compilation/CompilerType.cs: implemented.

	* System.Web.Compilation/AssemblyBuilder.cs: implemented most of it.

	* System.Web.Compilation/WebServiceCompiler.cs:
	* System.Web.Compilation/CachingCompiler.cs: update 2.0 compiler
	instance creation code.

	* System.Web.Compilation/ClientBuildManager.cs: implemented some of
	its methods. Not yet ready.

	* System.Web.Compilation/BuildManager.cs: the more interesting methods
	are implemented now.

	* System.Web.Compilation/BaseCompiler.cs: delete the temporary files
	in case of error.

	* System.Web.Compilation/BuildProvider.cs: implemented the
	Get*Compiler* protected methods.


svn path=/trunk/mcs/; revision=56781
2006-02-10 23:43:09 +00:00
Gonzalo Paniagua Javier fa95307b08 2006-02-02 Gonzalo Paniagua Javier <[email protected]>
* HostingEnvironment.cs: MapPath is done.


svn path=/trunk/mcs/; revision=56498
2006-02-02 22:21:38 +00:00
Gonzalo Paniagua Javier 2da2593498 2006-02-01 Gonzalo Paniagua Javier <[email protected]>
* SimpleWorkerRequest.cs: implemented RootWebConfigPath.
	* HostingEnvironment.cs: implemented RegisterVirtualPathProvider and
	a few other defaults.


svn path=/trunk/mcs/; revision=56412
2006-02-01 19:50:10 +00:00
Gonzalo Paniagua Javier 470d9252a8 2006-01-30 Gonzalo Paniagua Javier <[email protected]>
* VirtualPathProvider.cs: implemented OpenFile.
	* VirtualFile.cs: removed stuff cut&pasted from VirtualDirectory.

	* SimpleWorkerRequest.cs: 
	* HostingEnvironment.cs: class status fixes.


svn path=/trunk/mcs/; revision=56295
2006-01-30 22:32:30 +00:00
Gonzalo Paniagua Javier 6eb25c6ed2 2006-01-25 Gonzalo Paniagua Javier <[email protected]>
* VirtualDirectory.cs:
	* VirtualPathProvider.cs:
	* VirtualFileBase.cs:
	* VirtualFile.cs: implemented this base classes.

	* HostingEnvironment.cs: implemented a few properties by using the ones
	in HttpRuntime.


svn path=/trunk/mcs/; revision=56076
2006-01-25 22:01:59 +00:00
Chris Toshok 96c23b6a57 2005-11-02 Chris Toshok <[email protected]>
* HostingEnvironment.cs: completely NIE'ed implementation of
	HostingEnvironment, just to get an MS example provider to compile.


svn path=/trunk/mcs/; revision=52482
2005-11-02 17:09:50 +00:00