File tree 5 files changed +17
-15
lines changed
Nager.PublicSuffix.TestConsole
Nager.PublicSuffix.UnitTest
5 files changed +17
-15
lines changed Original file line number Diff line number Diff line change 8
8
</PropertyGroup >
9
9
10
10
<ItemGroup >
11
- <PackageReference Include =" Microsoft.Extensions.Logging" Version =" 8.0.0" />
12
- <PackageReference Include =" Microsoft.Extensions.Logging.Console" Version =" 8.0.0" />
11
+ <PackageReference Include =" Microsoft.Extensions.Logging" Version =" 9.0.0" />
12
+ <PackageReference Include =" Microsoft.Extensions.Logging.Abstractions" Version =" 9.0.0" />
13
+ <PackageReference Include =" Microsoft.Extensions.Logging.Console" Version =" 9.0.0" />
13
14
</ItemGroup >
14
15
15
16
<ItemGroup >
Original file line number Diff line number Diff line change 7
7
</PropertyGroup >
8
8
9
9
<ItemGroup >
10
- <PackageReference Include =" Microsoft.Extensions.Configuration" Version =" 8.0.0" />
11
- <PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 17.9.0" />
12
- <PackageReference Include =" Moq" Version =" 4.20.70" />
13
- <PackageReference Include =" MSTest.TestAdapter" Version =" 3.2.0" />
14
- <PackageReference Include =" MSTest.TestFramework" Version =" 3.2.0" />
10
+ <PackageReference Include =" Microsoft.Extensions.Configuration" Version =" 9.0.0" />
11
+ <PackageReference Include =" Microsoft.Extensions.Logging.Abstractions" Version =" 9.0.0" />
12
+ <PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 17.12.0" />
13
+ <PackageReference Include =" Moq" Version =" 4.20.72" />
14
+ <PackageReference Include =" MSTest.TestAdapter" Version =" 3.6.3" />
15
+ <PackageReference Include =" MSTest.TestFramework" Version =" 3.6.3" />
15
16
</ItemGroup >
16
17
17
18
<ItemGroup >
Original file line number Diff line number Diff line change 23
23
24
24
<SymbolPackageFormat >snupkg</SymbolPackageFormat >
25
25
26
- <TargetFrameworks >netstandard2.0;netstandard2.1;net6.0; net8.0</TargetFrameworks >
26
+ <TargetFrameworks >netstandard2.0;netstandard2.1;net8.0</TargetFrameworks >
27
27
28
- <Version >3.3 .0</Version >
28
+ <Version >3.4 .0</Version >
29
29
</PropertyGroup >
30
30
31
31
<ItemGroup >
39
39
</ItemGroup >
40
40
41
41
<ItemGroup >
42
- <PackageReference Include =" Microsoft.Extensions.Configuration.Abstractions" Version =" 8 .0.0" />
43
- <PackageReference Include =" Microsoft.Extensions.Logging.Abstractions" Version =" 8 .0.0" />
42
+ <PackageReference Include =" Microsoft.Extensions.Configuration.Abstractions" Version =" 9 .0.0" />
43
+ <PackageReference Include =" Microsoft.Extensions.Logging.Abstractions" Version =" 9 .0.0" />
44
44
</ItemGroup >
45
45
46
46
</Project >
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ public CachedHttpRuleProvider(
53
53
url = "https://publicsuffix.org/list/public_suffix_list.dat" ;
54
54
}
55
55
56
- this . _dataFileUrl = url ;
56
+ this . _dataFileUrl = url ?? throw new InvalidOperationException ( "_dataFileUrl must contain a non-null value" ) ;
57
57
}
58
58
59
59
/// <summary>
@@ -82,7 +82,7 @@ public CachedHttpRuleProvider(
82
82
var tempUrl = configuration [ "Nager:PublicSuffix:DataUrl" ] ;
83
83
if ( ! string . IsNullOrEmpty ( tempUrl ) )
84
84
{
85
- url = tempUrl ;
85
+ url = tempUrl ! ;
86
86
}
87
87
}
88
88
@@ -123,7 +123,7 @@ public override async Task<bool> BuildAsync(
123
123
}
124
124
125
125
var ruleParser = new TldRuleParser ( ) ;
126
- var rules = ruleParser . ParseRules ( ruleData ) ;
126
+ var rules = ruleParser . ParseRules ( ruleData ! ) ;
127
127
128
128
base . CreateDomainDataStructure ( rules ) ;
129
129
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ public SimpleHttpRuleProvider(
45
45
url = "https://publicsuffix.org/list/public_suffix_list.dat" ;
46
46
}
47
47
48
- this . _dataFileUrl = url ;
48
+ this . _dataFileUrl = url ?? throw new InvalidOperationException ( "_dataFileUrl must contain a non-null value" ) ;
49
49
}
50
50
51
51
/// <inheritdoc/>
You can’t perform that action at this time.
0 commit comments