Commit Graph

85 Commits

Author SHA1 Message Date
Mole
bf41c2eeaa Netcore: Align namespaces (#9801)
* Rename Umbraco.Core namespace to Umbraco.Cms.Core

* Move extension methods in core project to Umbraco.Extensions

* Move extension methods in core project to Umbraco.Extensions

* Rename Umbraco.Examine namespace to Umbraco.Cms.Examine

* Move examine extensions to Umbraco.Extensions namespace

* Reflect changed namespaces in Builder and fix unit tests

* Adjust namespace in Umbraco.ModelsBuilder.Embedded

* Adjust namespace in Umbraco.Persistence.SqlCe

* Adjust namespace in Umbraco.PublishedCache.NuCache

* Align namespaces in Umbraco.Web.BackOffice

* Align namespaces in Umbraco.Web.Common

* Ensure that SqlCeSupport is still enabled after changing the namespace

* Align namespaces in Umbraco.Web.Website

* Align namespaces in Umbraco.Web.UI.NetCore

* Align namespaces in Umbraco.Tests.Common

* Align namespaces in Umbraco.Tests.UnitTests

* Align namespaces in Umbraco.Tests.Integration

* Fix errors caused by changed namespaces

* Fix integration tests

* Undo the Umbraco.Examine.Lucene namespace change

This breaks integration tests on linux, since the namespace wont exists there because it's only used on windows.

* Fix merge

* Fix Merge
2021-02-18 11:06:02 +01:00
Shannon
4f2682678e Gets virtual page routing working, now just need to document. 2021-02-15 18:50:16 +11:00
Shannon
2a41cec263 Ensures the default PublishedModelFactory is always registered. Ensures AddModelsBuilder is done when adding the website (not required for the back office). 2021-02-01 16:53:24 +11:00
Shannon
6bed0e6c29 missing imports 2021-01-20 14:58:19 +11:00
Shannon
5f9447fc2a Got a POC working with dynamic recompilation 2021-01-15 18:17:13 +11:00
Shannon
34427b0104 Moves AddDistributed cache back to being called implicitly, ensures notification handlers are not added twice 2021-01-04 13:22:29 +11:00
Shannon
d46545faa0 For now, we explicitly require AddDistributedCache in Startup so it's not called twice. 2021-01-04 13:01:49 +11:00
Shannon
999c20a755 Fixes UmbracoIntegrationTest Mapping flag and missing using in Startup 2021-01-04 12:22:03 +11:00
Shannon
1a0d961e42 removes WebsiteComposer, BackOfficeComposer 2020-12-24 18:11:16 +11:00
Shannon
e8379d6c77 oops, trying to fix build 2020-12-23 12:27:47 +11:00
Shannon
7115e0a11e shuffles code with DependencyInjection namespace, forgot to commit changes to Startup 2020-12-23 12:02:01 +11:00
Shannon
ce508d08ec Merge remote-tracking branch 'origin/netcore/netcore' into netcore/task/front-end-routing
# Conflicts:
#	src/Umbraco.Tests/PublishedContent/NuCacheChildrenTests.cs
#	src/Umbraco.Tests/Testing/UmbracoTestBase.cs
#	src/Umbraco.Web.BackOffice/Extensions/BackOfficeApplicationBuilderExtensions.cs
2020-12-16 16:18:10 +11:00
Bjarke Berg
1727a5d6f1 Added specific PhysicalFileProvider for the app_plugins folder, that also checks whether extensions are allowed. 2020-12-08 12:33:07 +01:00
Shannon
e3be4009c0 Getting front end routing poc going 2020-12-08 16:33:50 +11:00
Shannon
10fc351470 merge cleanup 2020-12-04 13:09:08 +11:00
James Jackson-South
748cbb1f7b Normalize builder namespace 2020-12-01 12:42:14 +00:00
Paul Johnson
0241649f7f Cleanup AddUmbraco & AddUmbracoCore 2020-11-21 15:22:24 +00:00
Paul Johnson
3672a9f2f2 Add composers via extension on UmbracoBuilder
reduce scope of CoreRuntimeBootstrapper
2020-11-19 16:20:39 +00:00
Paul Johnson
48b61ec4c4 Simplify UmbracoBuilder setup 2020-11-19 09:12:39 +00:00
Paul Johnson
aec25d5007 Replace Composition with UmbracoBuilder 2020-11-18 17:41:57 +00:00
Bjarke Berg
dae6e2b8ee Migrated RenderNoContentController + related (#9309)
* Migrated RenderNoContentController + related

Signed-off-by: Bjarke Berg <mail@bergmania.dk>

* Fix after MSDI

Signed-off-by: Bjarke Berg <mail@bergmania.dk>

* Update src/Umbraco.Web.UI/Umbraco.Web.UI.csproj

Co-authored-by: Elitsa Marinovska <21998037+elit0451@users.noreply.github.com>

* Removing connection string

* Fixed tests after moving endpoint registration

Signed-off-by: Bjarke Berg <mail@bergmania.dk>

Co-authored-by: Elitsa Marinovska <elm@umbraco.dk>
Co-authored-by: Elitsa Marinovska <21998037+elit0451@users.noreply.github.com>
2020-11-03 18:55:55 +01:00
Bjarke Berg
6905e5e734 Cleanup of different stuff that can be deleted from Umbraco.Web
Signed-off-by: Bjarke Berg <mail@bergmania.dk>
2020-10-22 12:25:52 +02:00
Bjarke Berg
3efee8284a Post merge fixes 2020-09-07 15:28:58 +02:00
Shannon
f84a93ae20 Adds IUmbracoBuilder to build the config so it's easier to split apart, ensures background tasks don't run in integration tests, uses a custom CoreRuntime to ensure we use SimpleMainDom, re-wires the UmbracoWebApplicationFactory so that duplicate Hosts are not running at the same time, fixes issues with overriding/shadowing, uses RAMDirectory in lucene for tests, fixes CoreRuntime's events that we're moved incorrectly and not backwards compat, adds new real non static events which we can use in integration tests to install the DB before the runtime state is calculated 2020-09-02 18:10:29 +10:00
Bjarke Berg
b5b492106d Clean up by moving stuff from Startup.cs into extention methods 2020-08-24 14:23:08 +02:00
Bjarke Berg
5f6de61391 Fix iss issue 2020-08-18 11:36:45 +02:00
Bjarke Berg
3c2f2ac0b3 Netcore: Let build.ps1 create the dotnet new templates (#8591)
* Creates the Umbraco.Templates.nuspec on build

* Update nuspec to match nuget packages

* Updated namespace of Program.cs and Startup.cs and replace these with the project name in templates

* Bugfixes for sqlce

* Simplified template to have one template with --UseSqlCe as option

* Update build/build.ps1

Co-authored-by: Elitsa Marinovska <21998037+elit0451@users.noreply.github.com>

Co-authored-by: Elitsa Marinovska <21998037+elit0451@users.noreply.github.com>
2020-08-11 08:28:16 +02:00
Bjarke Berg
1dac8779c2 https://dev.azure.com/umbraco/D-Team%20Tracker/_workitems/edit/7619 - Added request localization from the current user 2020-08-04 12:54:54 +02: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
f86d8185bf Clean up and based on review comments 2020-06-11 11:21:07 +02:00
Bjarke Berg
39ace69879 Added runtime compilation of views 2020-06-05 12:50:26 +02:00
Shannon
6a4c277fdc gets anti-forgery working (needs more testing) 2020-05-26 22:21:22 +10:00
Scott Brady
091712e5de Merge remote-tracking branch 'Umbraco/netcore/netcore' into netcore/feature/aspnetcoreidentity 2020-05-18 12:52:03 +01:00
Bjarke Berg
5e131ebafb Merge remote-tracking branch 'origin/netcore/dev' into netcore/netcore
# Conflicts:
#	src/Umbraco.Web.UI.Client/package-lock.json
#	src/Umbraco.Web.UI.NetCore/Startup.cs
2020-05-18 11:51:55 +02:00
Scott Brady
c6210ba7f2 Working installation. Use of Thread.CurrentPrincipal removed for now 2020-05-17 10:39:30 +01:00
Scott Brady
d12c6ddf62 Cleanup 2020-05-17 08:59:40 +01:00
Scott Brady
e872ba1a64 Resolvable user store 2020-05-15 16:52:51 +01:00
Scott Brady
c9f9706523 Initial DI attempt 2020-05-15 15:21:15 +01:00
Bjarke Berg
515d43e11b Merge branch 'netcore/netcore' into netcore/feature/auto-routing
# Conflicts:
#	src/Umbraco.Web.BackOffice/Controllers/BackOfficeController.cs
2020-05-15 14:10:03 +02:00
Andy Butland
8ae0e12512 Removed global setting of content model binder and used encoded URL in model binding exception filter redirect. 2020-05-15 10:33:09 +02:00
Shannon
e3591923c3 Gets auto-routing back office api controllers working, lots of notes 2020-05-14 17:04:16 +10:00
Elitsa Marinovska
6ddb103782 Merge remote-tracking branch 'origin/netcore/netcore' into netcore/feature/AB6455-migrate-surfacecontroller 2020-05-12 13:43:22 +02:00
Shannon
42c347dc21 doh fix build 2020-05-12 17:19:19 +10:00
Elitsa Marinovska
cbf7f5ccc3 Merge remote-tracking branch 'origin/netcore/netcore' into netcore/feature/AB6455-migrate-surfacecontroller 2020-05-12 08:29:39 +02:00
Shannon
bcaede22f1 Cleans up ext methods and where they are located and what they call to ensure dependencies are taken care of, cleans up Startup, moves routing appropriately 2020-05-12 15:18:55 +10:00
Shannon
39fed867c1 Cleans up some routing, mvc base classes, gets controller specific model binding working, applies our own application model to our controllers 2020-05-12 10:21:40 +10:00
Elitsa Marinovska
412067e11f Merge remote-tracking branch 'origin/netcore/netcore' into netcore/feature/AB6455-migrate-surfacecontroller
# Conflicts:
#	src/Umbraco.Web.UI.NetCore/Startup.cs
2020-05-11 16:50:36 +02:00
Elitsa Marinovska
d33aa6cdf5 Updating the way we get UmbracoContext in RedirectToUmbracoPageResult.cs; removing the flushing in JsonNetResult.cs and adding necessary configuration for allowing sync operations needed in JsonNetResult.cs 2020-05-11 16:23:33 +02:00
Andy Butland
22b7484217 Implemented content model binder in netcore. 2020-05-08 13:23:44 +02:00
Shannon
12bb68100a Remove ununsed and unneeded DbProviderFactory CreateFactory(); from IDbProviderFactoryCreator, ensure the app doesn't explode if exceptions are thrown and boot fails 2020-05-08 17:30:30 +10:00