Merge pull request #11200 from umbraco/v9/feature/implement-IOptionsMonitor-instead-of-IOptions

v9: Implement IOptionsMonitor or IOptionsSnapshot instead of IOptions
This commit is contained in:
Nikolaj Geisle
2021-10-04 14:01:28 +02:00
committed by GitHub
96 changed files with 379 additions and 255 deletions

View File

@@ -78,11 +78,11 @@ namespace Umbraco.Cms.Web.BackOffice.Controllers
public UsersController(
MediaFileManager mediaFileManager,
IOptions<ContentSettings> contentSettings,
IOptionsSnapshot<ContentSettings> contentSettings,
IHostingEnvironment hostingEnvironment,
ISqlContext sqlContext,
IImageUrlGenerator imageUrlGenerator,
IOptions<SecuritySettings> securitySettings,
IOptionsSnapshot<SecuritySettings> securitySettings,
IEmailSender emailSender,
IBackOfficeSecurityAccessor backofficeSecurityAccessor,
AppCaches appCaches,
@@ -90,7 +90,7 @@ namespace Umbraco.Cms.Web.BackOffice.Controllers
IUserService userService,
ILocalizedTextService localizedTextService,
IUmbracoMapper umbracoMapper,
IOptions<GlobalSettings> globalSettings,
IOptionsSnapshot<GlobalSettings> globalSettings,
IBackOfficeUserManager backOfficeUserManager,
ILoggerFactory loggerFactory,
LinkGenerator linkGenerator,