another note

This commit is contained in:
Shannon
2020-03-25 17:39:36 +11:00
parent 77ce21b0e3
commit 926b0662e7

View File

@@ -80,6 +80,7 @@ namespace Umbraco.Tests.Integration
// The test below shows how it could be possible to resolve an instance and then re-register it as a factory
// so that only one singleton instance is every created, but it's hacky and like Fowler says in that article
// it means the container won't be disposed, and maybe other services? not sure.
// In cases where we use it can we use IConfigureOptions? https://andrewlock.net/access-services-inside-options-and-startup-using-configureoptions/
var umbracoContainer = RuntimeTests.GetUmbracoContainer(out var serviceProviderFactory);