Skip to content

Commit 47350ed

Browse files
committed
Update IScopeProvider namespaces
1 parent 8846cf3 commit 47350ed

File tree

2 files changed

+12
-26
lines changed

2 files changed

+12
-26
lines changed

src/Umbraco.Cms.Integrations.Automation.Zapier/Migrations/UmbracoAppStartingHandler.cs

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,39 +3,32 @@
33
using Umbraco.Cms.Core.Events;
44
using Umbraco.Cms.Core.Migrations;
55
using Umbraco.Cms.Core.Notifications;
6-
using Umbraco.Cms.Core.Scoping;
76
using Umbraco.Cms.Core.Services;
87
using Umbraco.Cms.Infrastructure.Migrations.Upgrade;
98

9+
#if NET5_0
10+
using Umbraco.Cms.Core.Scoping;
11+
#else
12+
using Umbraco.Cms.Infrastructure.Scoping;
13+
#endif
14+
1015
namespace Umbraco.Cms.Integrations.Automation.Zapier.Migrations
1116
{
1217
public class UmbracoAppStartingHandler : INotificationHandler<UmbracoApplicationStartingNotification>
1318
{
1419
private readonly IMigrationPlanExecutor _migrationPlanExecutor;
1520

16-
#if NET5_0
1721
private readonly IScopeProvider _scopeProvider;
18-
#else
19-
private readonly ICoreScopeProvider _scopeProvider;
20-
#endif
2122

2223
private readonly IKeyValueService _keyValueService;
2324

2425
private readonly IRuntimeState _runtimeState;
2526

26-
#if NET5_0
2727
public UmbracoAppStartingHandler(
2828
IScopeProvider scopeProvider,
2929
IMigrationPlanExecutor migrationPlanExecutor,
3030
IKeyValueService keyValueService,
3131
IRuntimeState runtimeState)
32-
#else
33-
public UmbracoAppStartingHandler(
34-
ICoreScopeProvider scopeProvider,
35-
IMigrationPlanExecutor migrationPlanExecutor,
36-
IKeyValueService keyValueService,
37-
IRuntimeState runtimeState)
38-
#endif
3932
{
4033
_migrationPlanExecutor = migrationPlanExecutor;
4134

src/Umbraco.Cms.Integrations.Crm.Dynamics/Migrations/UmbracoAppStartingHandler.cs

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,39 +3,32 @@
33
using Umbraco.Cms.Core.Events;
44
using Umbraco.Cms.Core.Migrations;
55
using Umbraco.Cms.Core.Notifications;
6-
using Umbraco.Cms.Core.Scoping;
76
using Umbraco.Cms.Core.Services;
87
using Umbraco.Cms.Infrastructure.Migrations.Upgrade;
98

9+
#if NET5_0
10+
using Umbraco.Cms.Core.Scoping;
11+
#else
12+
using Umbraco.Cms.Infrastructure.Scoping;
13+
#endif
14+
1015
namespace Umbraco.Cms.Integrations.Crm.Dynamics.Migrations
1116
{
1217
public class UmbracoAppStartingHandler : INotificationHandler<UmbracoApplicationStartingNotification>
1318
{
1419
private readonly IMigrationPlanExecutor _migrationPlanExecutor;
1520

16-
#if NET5_0
1721
private readonly IScopeProvider _scopeProvider;
18-
#else
19-
private readonly ICoreScopeProvider _scopeProvider;
20-
#endif
2122

2223
private readonly IKeyValueService _keyValueService;
2324

2425
private readonly IRuntimeState _runtimeState;
2526

26-
#if NET5_0
2727
public UmbracoAppStartingHandler(
2828
IScopeProvider scopeProvider,
2929
IMigrationPlanExecutor migrationPlanExecutor,
3030
IKeyValueService keyValueService,
3131
IRuntimeState runtimeState)
32-
#else
33-
public UmbracoAppStartingHandler(
34-
ICoreScopeProvider scopeProvider,
35-
IMigrationPlanExecutor migrationPlanExecutor,
36-
IKeyValueService keyValueService,
37-
IRuntimeState runtimeState)
38-
#endif
3932
{
4033
_migrationPlanExecutor = migrationPlanExecutor;
4134

0 commit comments

Comments
 (0)