Skip to content

Commit 6760465

Browse files
committed
Fixed breaking changes
1 parent 692f952 commit 6760465

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/Umbraco.Core/HealthChecks/Checks/Security/BaseHttpHeaderCheck.cs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,20 @@ public abstract class BaseHttpHeaderCheck : HealthCheck
2626
private readonly bool _metaTagOptionAvailable;
2727
private static HttpClient s_httpClient;
2828

29+
[Obsolete("Use ctor without value.")]
30+
protected BaseHttpHeaderCheck(
31+
IHostingEnvironment hostingEnvironment,
32+
ILocalizedTextService textService,
33+
string header,
34+
string value,
35+
string localizedTextPrefix,
36+
bool metaTagOptionAvailable) :this(hostingEnvironment, textService, header, localizedTextPrefix, metaTagOptionAvailable)
37+
{
38+
39+
}
40+
41+
[Obsolete("Save ILocalizedTextService in a field on the super class instead of using this")]
42+
protected ILocalizedTextService LocalizedTextService => _textService;
2943
/// <summary>
3044
/// Initializes a new instance of the <see cref="BaseHttpHeaderCheck"/> class.
3145
/// </summary>

0 commit comments

Comments
 (0)