@@ -44,9 +44,28 @@ private RuntimeState()
44
44
{
45
45
}
46
46
47
+ public RuntimeState (
48
+ IOptions < GlobalSettings > globalSettings ,
49
+ IOptions < UnattendedSettings > unattendedSettings ,
50
+ IUmbracoVersion umbracoVersion ,
51
+ IUmbracoDatabaseFactory databaseFactory ,
52
+ ILogger < RuntimeState > logger ,
53
+ PendingPackageMigrations packageMigrationState ,
54
+ IConflictingRouteService conflictingRouteService )
55
+ {
56
+ _globalSettings = globalSettings ;
57
+ _unattendedSettings = unattendedSettings ;
58
+ _umbracoVersion = umbracoVersion ;
59
+ _databaseFactory = databaseFactory ;
60
+ _logger = logger ;
61
+ _packageMigrationState = packageMigrationState ;
62
+ _conflictingRouteService = conflictingRouteService ;
63
+ }
64
+
47
65
/// <summary>
48
66
/// Initializes a new instance of the <see cref="RuntimeState"/> class.
49
67
/// </summary>
68
+ [ Obsolete ( "use ctor with all params" ) ]
50
69
public RuntimeState (
51
70
IOptions < GlobalSettings > globalSettings ,
52
71
IOptions < UnattendedSettings > unattendedSettings ,
@@ -65,24 +84,6 @@ public RuntimeState(
65
84
{
66
85
}
67
86
68
- public RuntimeState (
69
- IOptions < GlobalSettings > globalSettings ,
70
- IOptions < UnattendedSettings > unattendedSettings ,
71
- IUmbracoVersion umbracoVersion ,
72
- IUmbracoDatabaseFactory databaseFactory ,
73
- ILogger < RuntimeState > logger ,
74
- PendingPackageMigrations packageMigrationState ,
75
- IConflictingRouteService conflictingRouteService )
76
- {
77
- _globalSettings = globalSettings ;
78
- _unattendedSettings = unattendedSettings ;
79
- _umbracoVersion = umbracoVersion ;
80
- _databaseFactory = databaseFactory ;
81
- _logger = logger ;
82
- _packageMigrationState = packageMigrationState ;
83
- _conflictingRouteService = conflictingRouteService ;
84
- }
85
-
86
87
/// <inheritdoc />
87
88
public Version Version => _umbracoVersion . Version ;
88
89
0 commit comments