Commit Graph

388 Commits

Author SHA1 Message Date
Andy Butland
2cd91a5a54 Converted to IOptions over IOptionsSnapshot due to the latter only working in scoped services.
Further amends to return to booting application.
2020-08-23 23:36:48 +02:00
Andy Butland
510bd92e78 Amended injection of further settings to use IOptionsSnapshot. 2020-08-21 14:52:47 +01:00
Bjarke Berg
1594a84d80 migated remaining backoffice controllers
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-06-22 10:08:08 +02:00
Bjarke Berg
834a8173d0 Migrated Media controller + ContentTypeControllerBase + ContentTypeController, MediaTypeController
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-06-12 22:13:43 +02:00
Bjarke Berg
57b8ab201d Clean up and fixed second ctor in PhysicalFileSystem 2020-06-11 11:07:21 +02:00
Bjarke Berg
1029f4fe0b Fix for filesystems. Now rooted at the content root and not the www root 2020-06-05 11:36:59 +02:00
Bjarke Berg
305ed42b48 Moved the sqlce db to root/App_Data/umbraco.sdf, instead of wwwroot/App_Data/umbraco.sdf 2020-05-04 14:40:11 +02:00
Bjarke Berg
2c1d94cb11 AB#5822 - removed IIOHelper.DirSepChar and uses Path.DirectorySeparatorChar instead 2020-04-03 10:09:08 +02:00
Shannon
c48f36f6a2 Even more IOHelper reduction, fixes some tests 2020-04-03 15:36:57 +11:00
Shannon
4349115f0d Fixes up some errors 2020-04-03 11:47:38 +11:00
Shannon
7e2d0902af Huge IIOHelper cleanup, removes some overlap with IHostingEnvironment, much less usages of IIOHelper and instead just use what is already available on IHostingEnvironment 2020-04-03 11:03:06 +11:00
Shannon
1224c97f07 Don't pass in Root to ToAbsolute there's no need 2020-04-03 09:17:40 +11:00
Shannon
fa2e9c3715 Fixing AspNetCoreHostingEnvironment, cleaning up more IOHelper, adds notes 2020-04-03 09:13:55 +11:00
Shannon
9d320f79da New IRuntimeHash to fix type scanning in netcore in order to look at the right runtime bits to creaet a hash for 2020-04-03 01:08:52 +11:00
Shannon
f0579714e9 Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/AB5822-smidge-implementation
# Conflicts:
#	.gitignore
#	src/Umbraco.Core/IO/IIOHelper.cs
2020-04-02 22:32:02 +11:00
Shannon
95a36b3064 Changes namesspace, fixes cdf registrations, fixes bundle registrations, cleanup 2020-04-02 21:19:42 +11:00
Shannon
8535d0fbe3 Cleans up IIOHelper and removes methods/props that shouldn't exist, changes test helper to use WorkingDirectory fixes some usages of MapPath 2020-03-31 17:27:51 +11:00
Shannon
1658fced23 Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/booting-netcore
# Conflicts:
#	src/Umbraco.Core/IO/IOHelper.cs
#	src/Umbraco.Infrastructure/Runtime/WebRuntime.cs
#	src/Umbraco.Tests.Common/TestHelperBase.cs
#	src/Umbraco.Tests/Routing/RenderRouteHandlerTests.cs
#	src/Umbraco.Tests/Runtimes/StandaloneTests.cs
#	src/Umbraco.Web.BackOffice/AspNetCore/UmbracoBackOfficeServiceCollectionExtensions.cs
#	src/Umbraco.Web.UI.NetCore/Program.cs
#	src/Umbraco.Web.UI.NetCore/Startup.cs
#	src/Umbraco.Web/UmbracoApplication.cs
2020-03-23 15:50:01 +11:00
Bjarke Berg
f671fea998 NetCore: Refactor config/setting to not use dependencies (#7810)
* Avoid usage of IOHelper in GlobalSettings

* Avoid usage of IOHelper in ModelsBuilderConfig.cs

* Avoid usage of IOHelper in ConnectionStrings.cs

* Simplified more config

* Fix for ModelsBuilderConfig

* Moved GetUmbracoMvcAreaNoCache to IOHelperExtensions
2020-03-17 16:26:56 +01:00
Shannon
41163c3c78 Gets CoreRuntime loading/booting in integration project 2020-03-13 14:43:41 +11:00
Bjarke Berg
6bb920b457 Added comments, and replaced a static helper with extension methods 2020-02-25 07:57:59 +01:00
Bjarke Berg
90c2381c86 Renamed Umbraco.Abstractions to Umbraco.Core 2020-02-24 08:21:53 +01:00
Bjarke Berg
816baa5eaf Moved SystemFiles to abstractions 2019-12-05 10:43:45 +01:00
Bjarke Berg
204bbd5c46 Moved IOHelper to abstractions 2019-12-05 10:41:58 +01:00
Bjarke Berg
28ecb355dd Let IOHelper use IHostingEnvironment 2019-12-04 21:30:18 +01:00
Bjarke Berg
969832310e Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/core-cannot-use-system-web 2019-11-26 08:47:33 +01:00
Bjarke Berg
323a60fa76 Removed IOHelper.Default, to prepare for injecting 2019-11-26 08:15:00 +01:00
Bjarke Berg
3e360abf15 Removed static ApplicationUrlHelper and introduced IBackOfficeInfo and AspNetBackOfficeInfo 2019-11-21 14:19:56 +01:00
Bjarke Berg
fc22282a59 Injecting IHostingEnvironment 2019-11-20 15:21:09 +01:00
Bjarke Berg
bec4205ef5 Introduced a IHostingEnvironment and one implemtation for AspNetHostingEnvironment 2019-11-20 13:38:41 +01:00
Bjarke Berg
969d8fbedd Introduced a IIpResolver 2019-11-20 11:27:19 +01:00
Bjarke Berg
ca77c519e9 Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/remove_current_iohelper
# Conflicts:
#	src/Umbraco.Abstractions/Configuration/ConfigsExtensions.cs
#	src/Umbraco.Configuration/GlobalSettings.cs
#	src/Umbraco.Tests/Persistence/Repositories/ScriptRepositoryTest.cs
#	src/Umbraco.Tests/Persistence/Repositories/StylesheetRepositoryTest.cs
#	src/Umbraco.Tests/PublishedContent/NuCacheChildrenTests.cs
#	src/Umbraco.Tests/PublishedContent/NuCacheTests.cs
#	src/Umbraco.Tests/TestHelpers/TestHelper.cs
2019-11-19 08:13:35 +01:00
Bjarke Berg
541e7a3cb5 AB3734 - Post merge fixes 2019-11-19 08:04:24 +01:00
Bjarke Berg
c9c4d3acdf Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/AB3734-move-io-stuff
# Conflicts:
#	src/Umbraco.Tests/Persistence/Repositories/ScriptRepositoryTest.cs
#	src/Umbraco.Tests/Persistence/Repositories/StylesheetRepositoryTest.cs
2019-11-19 07:55:05 +01:00
Bjarke Berg
4f204543e6 AB3734 - Moved alot of stuff from Umbraco.Core.IO into abstractions 2019-11-19 07:53:40 +01:00
Søren Gregersen
be7c1f6eb1 fixed (almost all) tests 2019-11-18 20:43:38 +01:00
Søren Gregersen
0bdf0ec122 merged 2019-11-18 19:51:42 +01:00
Søren Gregersen
b99f2ca25f merged 2019-11-18 19:46:32 +01:00
Søren Gregersen
c1ecfbefd5 fix: reverted a few placed, passing tests 2019-11-18 17:40:15 +01:00
Bjarke Berg
603ec0ccfb AB3594 - Moved the composition root out to UmbracoApplicationBase, and injecting the needed parts from there. Also remove usages of ConfigurationManager from Umbraco.Core 2019-11-15 11:41:13 +01:00
Shannon Deminick
d0f534e2f4 Merge pull request #7120 from umbraco/netcore/feature/AB3649-move-manifest-stuff
Netcore: Move manifest code
2019-11-14 12:10:25 +11:00
Søren Gregersen
7b19ab005b first round of refactoring 2019-11-13 21:12:02 +01:00
Bjarke Berg
2e200779f9 Merge branch 'netcore/feature/abstract-systemdirectories' into netcore/feature/AB3594_move_exsiting_configuration_to_own_project 2019-11-13 14:20:21 +01:00
Bjarke Berg
c9a99f52aa Can't have the path info on IOHelper, because that leads to a cycle between config and IOHelper. Now you need to go directly to config, if you need a path 2019-11-13 14:15:50 +01:00
Bjarke Berg
5edac2a476 Merge branch 'netcore/feature/abstract-systemdirectories' into netcore/feature/AB3594_move_exsiting_configuration_to_own_project
# Conflicts:
#	src/Umbraco.Abstractions/IO/IIOHelper.cs
#	src/Umbraco.Core/IO/IOHelper.cs
2019-11-13 13:26:44 +01:00
Bjarke Berg
b721e75cd2 Move the config usage out of IOHelper 2019-11-13 13:22:28 +01:00
Bjarke Berg
e7683b7a39 Cleanup and moved some methods from the interface 2019-11-13 12:56:22 +01:00
Bjarke Berg
0be396c4fd Post merge fixes 2019-11-13 12:53:01 +01:00
Bjarke Berg
9889967b83 Merge branch 'netcore/feature/abstract-systemdirectories' into netcore/feature/AB3594_move_exsiting_configuration_to_own_project
# Conflicts:
#	src/Umbraco.Abstractions/Configuration/GlobalSettingsExtensions.cs
#	src/Umbraco.Core/ConfigsExtensions.cs
#	src/Umbraco.Core/Configuration/GlobalSettings.cs
#	src/Umbraco.Tests/Configurations/GlobalSettingsTests.cs
2019-11-13 12:38:56 +01:00
Bjarke Berg
683c0da468 Moved stuff from SystemDirectories into constants and IOHelper to avoid a circular dependency 2019-11-13 11:56:32 +01:00