Bjarke Berg
ef4e2eb511
Renamed service implementations namespace to Core
2021-02-23 12:24:51 +01:00
Mole
7213080b4e
Merge branch 'netcore/feature/align-namespaces' into netcore/feature/align-infrastructure-namespaces
2021-02-15 15:48:09 +01:00
Mole
7e8c7fdc2b
Merge remote-tracking branch 'origin/netcore/dev' into netcore/feature/align-namespaces
...
# Conflicts:
# src/Umbraco.Infrastructure/Search/ExamineComposer.cs
2021-02-15 15:45:03 +01:00
Bjarke Berg
9ba04c394b
Added Directory.Build.props to replace SolutionInfo
2021-02-15 13:53:06 +01:00
Mole
33c8396ad2
Align namespaces in Services to Umbraco.Cms.Infrastructure
2021-02-15 12:51:42 +01:00
Mole
0cc3645146
Align namespaces in Serialization to Umbraco.Cms.Infrastructure
...
This seems like some very Newtonsoft specific things, so I put it infrastructure
2021-02-15 12:42:26 +01:00
Mole
48e1ba2127
Align namespaces in Scoping to Umbraco.Cms.Core
2021-02-15 11:41:12 +01:00
Mole
161f01bc1e
Change namespace of PublishedContentTypeCache to Umbraco.Cms.Core.PublishedCache
2021-02-15 10:48:14 +01:00
Mole
5bd8e32279
Align namespaces in Persistence
...
Made everything except for repository interface be in the Umbraco.Cms.Infrastructure.Persistence namespace
2021-02-12 13:36:50 +01:00
Mole
737b471647
Adjust namespace in Umbraco.PublishedCache.NuCache
2021-02-10 10:46:52 +01:00
Mole
34f8766a3c
Move extension methods in core project to Umbraco.Extensions
2021-02-09 15:14:56 +01:00
Mole
dd488a15f4
Move extension methods in core project to Umbraco.Extensions
2021-02-09 13:21:17 +01:00
Mole
216fb87c79
Rename Umbraco.Core namespace to Umbraco.Cms.Core
2021-02-09 10:22:42 +01:00
Shannon
5f9447fc2a
Got a POC working with dynamic recompilation
2021-01-15 18:17:13 +11:00
Shannon
bd4006c577
Fixes the custom RequestCultureProvider to dynamically add cultures to the supported cultures list, changes the request/builder to not reference a ICultureInfo and instead just a string to avoid allocations and confusion since the handlers will end up as a string anyways. Removes the unnecessary cultureinfo concurrentdictionary because CultureInfo.GetCultureInfo does the same thing.
2021-01-11 13:39:09 +11:00
Shannon
b20ce5a92e
A bunch of cleanup for DI namespaces, ext methods and dist cache classes
2020-12-24 09:50:05 +11:00
Shannon
d5a19530f3
Fixing tests, more DependencyInjection namespace
2020-12-23 13:06:22 +11:00
Shannon
0c645a99bd
Makes PublishedSnapshotStatus status code more human readable, fixes ModelBinding ns
2020-12-23 10:45:52 +11:00
Shannon
c88ba7afa5
notes, removes todo
2020-12-22 13:49:26 +11:00
Shannon
57020b4778
adds notes, removes IPublishedCacheComposer
2020-12-22 12:33:00 +11:00
Shannon
f5e9441e9f
renames umb builder ext class to be more explicit, no more AddAllBackOfficeComponents, just AddBackOffice, removes NuCacheComposer
2020-12-22 12:16:37 +11:00
Shannon
74d253a88f
Removes IPublishedSnapshotService.EnsureEnvironment
2020-12-22 11:22:29 +11:00
Shannon
c761fa0506
New IPublishedSnapshotStatus, reduces IPublishedSnapshotService
2020-12-21 17:41:12 +11:00
Shannon
e8f5aa8ebc
removes PublishedSnapshotServiceBase, shrinks interface
2020-12-21 17:04:29 +11:00
Shannon
03f22e9362
Fixing tests after merge
2020-12-21 16:44:50 +11:00
Shannon
cc1404747b
Changes PublishedSnapshotService to lazily load it's caches on demand when they are required instead of relying on an external initializer to load them.
2020-12-17 16:27:28 +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
Shannon
827bf80d1d
Removes EnterPreview, RefreshPreview, ExitPreview
2020-12-14 17:04:02 +11:00
Shannon
b5e3bc9e0d
Fix the UmbracoViewPage and view model binding, combine the tests cases, remove IPublishedContentType2, front end is rendering
2020-12-11 14:55:19 +11:00
Shannon
4b85f8eb20
Big refactor or PublishedSnapshotService to split up so that there's a service and repository responsible for the data querying and persistence
2020-12-09 22:43:49 +11:00
Bjarke Berg
40a6fa2b89
NetCore: Migrate more tests ( #9494 )
...
* Migrate tests
* Cleanup
* Migrate tests
* post merge fix
Signed-off-by: Bjarke Berg <mail@bergmania.dk >
2020-12-08 09:19:51 +01:00
Shannon
f16b8e705a
reduce dependencies in PublishedSnapshotService, more linting
2020-12-08 10:20:03 +11:00
James Jackson-South
0369375d8e
Merge branch 'netcore/netcore' into netcore/feature/9397
2020-12-01 12:44:10 +00:00
James Jackson-South
748cbb1f7b
Normalize builder namespace
2020-12-01 12:42:14 +00:00
Bjarke Berg
85c01d9905
Merge remote-tracking branch 'origin/netcore/dev' into netcore/netcore
...
# Conflicts:
# src/Umbraco.Configuration/Legacy/GlobalSettings.cs
# src/Umbraco.Core/Configuration/IGlobalSettings.cs
# src/Umbraco.Core/Models/ContentBaseExtensions.cs
# src/Umbraco.Core/Routing/ContentFinderByRedirectUrl.cs
# src/Umbraco.Core/Routing/DefaultUrlProvider.cs
# src/Umbraco.Core/Runtime/MainDom.cs
# src/Umbraco.Core/Services/IRuntimeState.cs
# src/Umbraco.Infrastructure/Compose/NotificationsComponent.cs
# src/Umbraco.Infrastructure/PropertyEditors/ValueConverters/ImageCropperValueConverter.cs
# src/Umbraco.Infrastructure/RuntimeState.cs
# src/Umbraco.Tests/Routing/UrlsWithNestedDomains.cs
# src/Umbraco.Tests/Runtimes/StandaloneTests.cs
# src/Umbraco.Tests/TestHelpers/TestObjects.cs
# src/Umbraco.Web.BackOffice/Controllers/LogViewerController.cs
# src/Umbraco.Web.BackOffice/Controllers/UsersController.cs
# src/Umbraco.Web.BackOffice/Mapping/ContentMapDefinition.cs
# src/Umbraco.Web.BackOffice/PropertyEditors/RteEmbedController.cs
# src/Umbraco.Web.BackOffice/Trees/DictionaryTreeController.cs
# src/Umbraco.Web.UI.NetCore/umbraco/UmbracoBackOffice/Default.cshtml
# src/Umbraco.Web.UI.NetCore/umbraco/config/lang/da.xml
# src/Umbraco.Web.UI.NetCore/umbraco/config/lang/en.xml
# src/Umbraco.Web.UI.NetCore/umbraco/config/lang/en_us.xml
# src/Umbraco.Web.UI/Umbraco/config/lang/cs.xml
# src/Umbraco.Web.UI/Views/Partials/Grid/Editors/Rte.cshtml
# src/Umbraco.Web/Controllers/UmbLoginController.cs
# src/Umbraco.Web/Install/Controllers/InstallController.cs
# src/Umbraco.Web/PublishedElementExtensions.cs
# src/Umbraco.Web/Runtime/WebInitialComposer.cs
# src/Umbraco.Web/UmbracoHelper.cs
# src/Umbraco.Web/UmbracoInjectedModule.cs
# src/Umbraco.Web/UrlHelperExtensions.cs
# src/Umbraco.Web/UrlHelperRenderExtensions.cs
# src/Umbraco.Web/WebApi/UmbracoApiControllerBase.cs
2020-12-01 11:34:13 +01:00
Bjarke Berg
c88c842d47
Merge remote-tracking branch 'origin/v8/dev' into netcore/dev
...
# Conflicts:
# .github/workflows/codeql-analysis.yml
# src/Umbraco.Core/CompositionExtensions.cs
# src/Umbraco.Core/Constants-AppSettings.cs
# src/Umbraco.Core/GuidUdi.cs
# src/Umbraco.Core/Models/PublishedContent/IPublishedContent.cs
# src/Umbraco.Core/PublishedContentExtensions.cs
# src/Umbraco.Core/Routing/DefaultUrlProvider.cs
# src/Umbraco.Core/Routing/UrlProvider.cs
# src/Umbraco.Core/Routing/UrlProviderExtensions.cs
# src/Umbraco.Core/Runtime/MainDom.cs
# src/Umbraco.Core/Services/IRuntimeState.cs
# src/Umbraco.Core/StringExtensions.cs
# src/Umbraco.Core/Sync/ApplicationUrlHelper.cs
# src/Umbraco.Core/Sync/DatabaseServerRegistrar.cs
# src/Umbraco.Core/Sync/IServerRegistrar.cs
# src/Umbraco.Infrastructure/Media/EmbedProviders/Instagram.cs
# src/Umbraco.Infrastructure/Models/ContentBaseExtensions.cs
# src/Umbraco.Infrastructure/PropertyEditors/NestedContentPropertyEditor.cs
# src/Umbraco.Infrastructure/PropertyEditors/ValueConverters/ImageCropperValue.cs
# src/Umbraco.Tests/Misc/ApplicationUrlHelperTests.cs
# src/Umbraco.Tests/Routing/UrlProviderTests.cs
# src/Umbraco.Tests/Routing/UrlsWithNestedDomains.cs
# src/Umbraco.Tests/TestHelpers/TestObjects.cs
# src/Umbraco.Web.UI/Umbraco/Views/Default.cshtml
# src/Umbraco.Web.UI/Views/Partials/Grid/Editors/Rte.cshtml
# src/Umbraco.Web/CompositionExtensions.cs
# src/Umbraco.Web/HtmlHelperBackOfficeExtensions.cs
# src/Umbraco.Web/ImageCropperTemplateExtensions.cs
# src/Umbraco.Web/Models/Mapping/ContentMapDefinition.cs
# src/Umbraco.Web/PropertyEditors/MultiUrlPickerPropertyEditor.cs
# src/Umbraco.Web/PublishedContentExtensions.cs
# src/Umbraco.Web/Runtime/WebInitialComponent.cs
# src/Umbraco.Web/Runtime/WebInitialComposer.cs
# src/Umbraco.Web/Templates/TemplateUtilities.cs
# src/Umbraco.Web/UmbracoContext.cs
# src/Umbraco.Web/UmbracoHelper.cs
# src/Umbraco.Web/UmbracoInjectedModule.cs
2020-11-30 11:24:24 +01:00
Paul Johnson
667c00ccd4
Hotfix for PublishedSnapshotService initialization
2020-11-25 10:53:38 +00:00
Paul Johnson
aec25d5007
Replace Composition with UmbracoBuilder
2020-11-18 17:41:57 +00:00
Paul Johnson
4ae329589a
NetCore: MSDI refactor remove IFactory & IRegister ( #9308 )
...
* Replace IFactory with IServiceProvider
* Replace IRegister with IServiceCollection
* Fix Rte.cshtml so the view can service locate.
* Replace Composing Lifetime with MSDI ServiceLifetime
* Remove ServiceProvider AddMultipleUnique extension
* Remove Umbraco.Web.Composing.Current.Reset and any calls
* Remove LightInject from net framework projects
* Brought back a helper for setting MediaFileSystem underlying IFileSystem
2020-10-30 12:16:17 +01:00
Paul Johnson
ec66990e72
NetCore: MSDI refactor phase 2 ( #9280 )
...
* Moved adapters from Infra -> Core
* Allow Composition to accept a service collection instead of an IRegister
* Composition no longer takes IRegister as constructor arg
all tests passing
* Composition no longer implements IRegister
* Lose _uniques in Composition
* lose Composition OnCreatingFactory actions
* Clean up UmbracoCoreServiceCollectionExtensions & Composition
Less IFactory
* LightInject gone where TFW == netstandard2.0 || TFW == netcoreapp3.1
* Resolve dead code issues
* Rename IFactory methods to match IServiceProvider so they can be trivially swapped later.
* Rename IFactory methods to match IServiceProvider so they can be trivially swapped later (continued)
Thought the counts were low, it's mostly extension method usage
2020-10-27 11:53:01 +01:00
Andy Butland
4565da0010
Migrated MemberServiceTests.
2020-10-11 09:46:48 +02:00
Mole
d750d2c2c1
Use generic logger more places and clean up
2020-09-28 14:59:17 +02:00
Bjarke Berg
f413f279eb
Merge remote-tracking branch 'origin/netcore/netcore' into netcore/feature/migrate-logging
...
Signed-off-by: Bjarke Berg <mail@bergmania.dk >
# Conflicts:
# src/Umbraco.ModelsBuilder.Embedded/LiveModelsProvider.cs
# src/Umbraco.ModelsBuilder.Embedded/PureLiveModelFactory.cs
# src/Umbraco.Tests.Integration/Implementations/TestHelper.cs
# src/Umbraco.Tests.Integration/Persistence/Repositories/TemplateRepositoryTest.cs
# src/Umbraco.Tests.Integration/RuntimeTests.cs
# src/Umbraco.Tests.UnitTests/Umbraco.Core/PropertyEditors/ColorListValidatorTest.cs
# src/Umbraco.Tests.UnitTests/Umbraco.Core/PropertyEditors/EnsureUniqueValuesValidatorTest.cs
# src/Umbraco.Tests.UnitTests/Umbraco.Core/PropertyEditors/MultiValuePropertyEditorTests.cs
# src/Umbraco.Tests.UnitTests/Umbraco.Core/Published/NestedContentTests.cs
# src/Umbraco.Tests.UnitTests/Umbraco.Core/Published/PropertyCacheLevelTests.cs
# src/Umbraco.Tests/Components/ComponentTests.cs
# src/Umbraco.Tests/IO/ShadowFileSystemTests.cs
# src/Umbraco.Tests/Models/VariationTests.cs
# src/Umbraco.Tests/Packaging/PackageDataInstallationTests.cs
# src/Umbraco.Tests/Persistence/DatabaseContextTests.cs
# src/Umbraco.Tests/Persistence/Repositories/MediaRepositoryTest.cs
# src/Umbraco.Tests/Persistence/Repositories/MediaTypeRepositoryTest.cs
# src/Umbraco.Tests/Persistence/Repositories/MemberRepositoryTest.cs
# src/Umbraco.Tests/Persistence/Repositories/MemberTypeRepositoryTest.cs
# src/Umbraco.Tests/Persistence/Repositories/PublicAccessRepositoryTest.cs
# src/Umbraco.Tests/Persistence/Repositories/TagRepositoryTest.cs
# src/Umbraco.Tests/Persistence/Repositories/UserRepositoryTest.cs
# src/Umbraco.Tests/Persistence/SqlCeTableByTableTest.cs
# src/Umbraco.Tests/Published/ConvertersTests.cs
# src/Umbraco.Tests/PublishedContent/SolidPublishedSnapshot.cs
# src/Umbraco.Tests/Routing/ContentFinderByIdTests.cs
# src/Umbraco.Tests/Routing/ContentFinderByUrlAndTemplateTests.cs
# src/Umbraco.Tests/Routing/DomainsAndCulturesTests.cs
# src/Umbraco.Tests/Routing/UmbracoModuleTests.cs
# src/Umbraco.Tests/Scoping/ScopeEventDispatcherTests.cs
# src/Umbraco.Tests/Scoping/ScopedNuCacheTests.cs
# src/Umbraco.Tests/Services/ContentServicePerformanceTest.cs
# src/Umbraco.Tests/Services/ContentTypeServiceVariantsTests.cs
2020-09-23 07:59:10 +02:00
Mole
a91f6f6a29
Clean PublishedSnapshotService a bit
2020-09-22 13:22:44 +02:00
Mole
6cce7ef3f2
Make internals visible to Moq, otherwise we cannot mock ILogger<InternalClass>
...
For some reason adding the assembly attribute doesn't work for the test project, I need to look into this.
2020-09-22 09:27:32 +02:00
Mole
5c9a681566
Use typed logger for XmlPublishedSnapshotService
2020-09-21 15:11:40 +02:00
Mole
ab3ac5ad91
Remove a bunch of references to the old logger
2020-09-21 11:19:46 +02:00
Mole
894abdd183
Remove a bunch of references to the old logger
2020-09-21 09:41:18 +02:00
Andy Butland
bae4f2fb53
Changed NuCache settings to use a nullable integer.
2020-09-21 08:54:03 +02:00
Mole
d61b9f54fa
Merge options
2020-09-18 12:53:06 +02:00