Fix after merge.
This commit is contained in:
@@ -29,11 +29,13 @@ using Umbraco.Cms.Core.Manifest;
|
||||
using Umbraco.Cms.Core.Models.PublishedContent;
|
||||
using Umbraco.Cms.Core.Notifications;
|
||||
using Umbraco.Cms.Core.Packaging;
|
||||
using Umbraco.Cms.Core.Persistence.Repositories;
|
||||
using Umbraco.Cms.Core.PropertyEditors;
|
||||
using Umbraco.Cms.Core.PublishedCache;
|
||||
using Umbraco.Cms.Core.PublishedCache.Internal;
|
||||
using Umbraco.Cms.Core.Routing;
|
||||
using Umbraco.Cms.Core.Runtime;
|
||||
using Umbraco.Cms.Core.Scoping;
|
||||
using Umbraco.Cms.Core.Security;
|
||||
using Umbraco.Cms.Core.Services;
|
||||
using Umbraco.Cms.Core.Sync;
|
||||
@@ -289,8 +291,14 @@ namespace Umbraco.Cms.Core.DependencyInjection
|
||||
Services.AddUnique<IRelationService, RelationService>();
|
||||
Services.AddUnique<IMemberTypeService, MemberTypeService>();
|
||||
Services.AddUnique<INotificationService, NotificationService>();
|
||||
Services.AddUnique<IExternalLoginService, ExternalLoginService>();
|
||||
|
||||
Services.AddUnique<ExternalLoginService>(factory => new ExternalLoginService(
|
||||
factory.GetRequiredService<IScopeProvider>(),
|
||||
factory.GetRequiredService<ILoggerFactory>(),
|
||||
factory.GetRequiredService<IEventMessagesFactory>(),
|
||||
factory.GetRequiredService<IExternalLoginWithKeyRepository>()
|
||||
));
|
||||
Services.AddUnique<IExternalLoginService>(factory => factory.GetRequiredService<ExternalLoginService>());
|
||||
Services.AddUnique<IExternalLoginWithKeyService>(factory => factory.GetRequiredService<ExternalLoginService>());
|
||||
Services.AddUnique<ILocalizedTextService>(factory => new LocalizedTextService(
|
||||
factory.GetRequiredService<Lazy<LocalizedTextServiceFileSources>>(),
|
||||
factory.GetRequiredService<ILogger<LocalizedTextService>>()));
|
||||
|
||||
@@ -18,9 +18,7 @@ using Umbraco.Cms.Core.Scoping;
|
||||
using Umbraco.Cms.Core.Services;
|
||||
using Umbraco.Cms.Core.Services.Implement;
|
||||
using Umbraco.Cms.Infrastructure.Packaging;
|
||||
using Umbraco.Cms.Infrastructure.Persistence;
|
||||
using Umbraco.Cms.Infrastructure.Persistence.Repositories.Implement;
|
||||
using Umbraco.Cms.Infrastructure.Services.Implement;
|
||||
using Umbraco.Extensions;
|
||||
|
||||
namespace Umbraco.Cms.Infrastructure.DependencyInjection
|
||||
@@ -46,21 +44,9 @@ namespace Umbraco.Cms.Infrastructure.DependencyInjection
|
||||
builder.Services.AddUnique<IServerRegistrationService, ServerRegistrationService>();
|
||||
builder.Services.AddUnique<IEntityService, EntityService>();
|
||||
builder.Services.AddUnique<IRelationService, RelationService>();
|
||||
builder.Services.AddUnique<IMacroService, MacroService>();
|
||||
builder.Services.AddUnique<IMemberTypeService, MemberTypeService>();
|
||||
builder.Services.AddUnique<IMemberGroupService, MemberGroupService>();
|
||||
builder.Services.AddUnique<INotificationService, NotificationService>();
|
||||
builder.Services.AddUnique<ExternalLoginService>(factory => new ExternalLoginService(
|
||||
factory.GetRequiredService<IScopeProvider>(),
|
||||
factory.GetRequiredService<ILoggerFactory>(),
|
||||
factory.GetRequiredService<IEventMessagesFactory>(),
|
||||
factory.GetRequiredService<IExternalLoginWithKeyRepository>()
|
||||
));
|
||||
builder.Services.AddUnique<IExternalLoginService>(factory => factory.GetRequiredService<ExternalLoginService>());
|
||||
builder.Services.AddUnique<IExternalLoginWithKeyService>(factory => factory.GetRequiredService<ExternalLoginService>());
|
||||
builder.Services.AddUnique<ITwoFactorLoginService, TwoFactorLoginService>();
|
||||
builder.Services.AddUnique<IRedirectUrlService, RedirectUrlService>();
|
||||
builder.Services.AddUnique<IConsentService, ConsentService>();
|
||||
builder.Services.AddTransient(SourcesFactory);
|
||||
builder.Services.AddUnique(factory => CreatePackageRepository(factory, "createdPackages.config"));
|
||||
builder.Services.AddUnique<ICreatedPackagesRepository, CreatedPackageSchemaRepository>();
|
||||
|
||||
@@ -45,7 +45,7 @@ namespace Umbraco.Cms.Infrastructure.Persistence.Repositories.Implement
|
||||
/// Initializes a new instance of the <see cref="CreatedPackageSchemaRepository"/> class.
|
||||
/// </summary>
|
||||
public CreatedPackageSchemaRepository(
|
||||
IUmbracoDatabase umbracoDatabase,
|
||||
IUmbracoDatabaseFactory umbracoDatabaseFactory,
|
||||
IHostingEnvironment hostingEnvironment,
|
||||
IOptions<GlobalSettings> globalSettings,
|
||||
FileSystems fileSystems,
|
||||
@@ -62,7 +62,7 @@ namespace Umbraco.Cms.Infrastructure.Persistence.Repositories.Implement
|
||||
string mediaFolderPath = null,
|
||||
string tempFolderPath = null)
|
||||
{
|
||||
_umbracoDatabase = umbracoDatabase;
|
||||
_umbracoDatabase = umbracoDatabaseFactory.CreateDatabase();
|
||||
_hostingEnvironment = hostingEnvironment;
|
||||
_fileSystems = fileSystems;
|
||||
_serializer = serializer;
|
||||
|
||||
@@ -8,9 +8,9 @@ using Umbraco.Cms.Core.Cache;
|
||||
using Umbraco.Cms.Core.Models;
|
||||
using Umbraco.Cms.Core.Persistence.Querying;
|
||||
using Umbraco.Cms.Core.Persistence.Repositories;
|
||||
using Umbraco.Cms.Core.Scoping;
|
||||
using Umbraco.Cms.Infrastructure.Persistence.Dtos;
|
||||
using Umbraco.Cms.Infrastructure.Persistence.Querying;
|
||||
using Umbraco.Cms.Infrastructure.Scoping;
|
||||
using Umbraco.Extensions;
|
||||
|
||||
namespace Umbraco.Cms.Infrastructure.Persistence.Repositories.Implement
|
||||
|
||||
@@ -62,29 +62,6 @@ namespace Umbraco.Cms.Core.Security
|
||||
_externalLoginService = externalLoginService;
|
||||
}
|
||||
|
||||
[Obsolete("Use ctor injecting IExternalLoginWithKeyService ")]
|
||||
public BackOfficeUserStore(
|
||||
IScopeProvider scopeProvider,
|
||||
IUserService userService,
|
||||
IEntityService entityService,
|
||||
IExternalLoginService externalLoginService,
|
||||
IOptions<GlobalSettings> globalSettings,
|
||||
IUmbracoMapper mapper,
|
||||
BackOfficeErrorDescriber describer,
|
||||
AppCaches appCaches)
|
||||
: this(
|
||||
scopeProvider,
|
||||
userService,
|
||||
entityService,
|
||||
StaticServiceProvider.Instance.GetRequiredService<IExternalLoginWithKeyService>(),
|
||||
globalSettings,
|
||||
mapper,
|
||||
describer,
|
||||
appCaches)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public override Task<IdentityResult> CreateAsync(BackOfficeIdentityUser user, CancellationToken cancellationToken = default)
|
||||
{
|
||||
|
||||
@@ -38,7 +38,7 @@ namespace Umbraco.Extensions
|
||||
factory.GetRequiredService<IUserService>(),
|
||||
factory.GetRequiredService<IEntityService>(),
|
||||
factory.GetRequiredService<IExternalLoginWithKeyService>(),
|
||||
factory.GetRequiredService<IOptions<GlobalSettings>>(),
|
||||
factory.GetRequiredService<IOptionsSnapshot<GlobalSettings>>(),
|
||||
factory.GetRequiredService<IUmbracoMapper>(),
|
||||
factory.GetRequiredService<BackOfficeErrorDescriber>(),
|
||||
factory.GetRequiredService<AppCaches>()
|
||||
|
||||
Reference in New Issue
Block a user