Skip to content

Commit c62af26

Browse files
committed
rename to NServiceBus.Community.HandlerOrdering
1 parent a0470d4 commit c62af26

File tree

8 files changed

+23
-29
lines changed

8 files changed

+23
-29
lines changed

src/.editorconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,8 @@ resharper_return_value_of_pure_method_is_not_used_highlighting = error
338338

339339
resharper_all_underscore_local_parameter_name_highlighting = none
340340

341+
resharper_misleading_body_like_statement_highlighting = error
342+
341343
# Xml files
342344
[*.{xml,config,nuspec,resx,vsixmanifest,csproj,targets,props,fsproj}]
343345
indent_size = 2

src/Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project>
33
<PropertyGroup>
4-
<Version>3.0.4</Version>
4+
<Version>3.1.0</Version>
55
<AssemblyVersion>1.0.0</AssemblyVersion>
66
<LangVersion>preview</LangVersion>
77
<PackageTags>NServiceBus, Handler Ordering</PackageTags>

src/HandlerOrdering.sln

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Visual Studio Version 16
33
VisualStudioVersion = 16.0.29201.188
44
MinimumVisualStudioVersion = 16.0.29201.188
5-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NServiceBus.HandlerOrdering", "HandlerOrdering\NServiceBus.HandlerOrdering.csproj", "{6252324B-3DE9-4DA1-B531-C1555B8D7C8D}"
5+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NServiceBus.Community.HandlerOrdering", "HandlerOrdering\NServiceBus.Community.HandlerOrdering.csproj", "{6252324B-3DE9-4DA1-B531-C1555B8D7C8D}"
66
EndProject
77
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Sample", "Sample\Sample.csproj", "{161F9409-B0F7-4940-9C3A-988B8A9DBDD0}"
88
EndProject
@@ -14,6 +14,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
1414
appveyor.yml = appveyor.yml
1515
Directory.Build.props = Directory.Build.props
1616
global.json = global.json
17+
..\readme.source.md = ..\readme.source.md
1718
EndProjectSection
1819
EndProject
1920
Global

src/HandlerOrdering/NServiceBus.HandlerOrdering.csproj renamed to src/HandlerOrdering/NServiceBus.Community.HandlerOrdering.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
<Project Sdk="Microsoft.NET.Sdk">
33
<PropertyGroup>
44
<TargetFramework>net9.0</TargetFramework>
5+
<RootNamespace>NServiceBus.HandlerOrdering</RootNamespace>
56
</PropertyGroup>
67
<ItemGroup>
78
<PackageReference Include="NServiceBus" Version="9.2.7" />
89
<PackageReference Include="ProjectDefaults" Version="1.0.150" PrivateAssets="all" />
9-
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" Condition="$(Configuration) == 'Release'" />
1010
</ItemGroup>
1111
</Project>

src/Sample/Sample.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
</PropertyGroup>
77
<ItemGroup>
88
<PackageReference Include="NServiceBus" Version="9.2.7" />
9-
<ProjectReference Include="..\HandlerOrdering\NServiceBus.HandlerOrdering.csproj" />
9+
<ProjectReference Include="..\HandlerOrdering\NServiceBus.Community.HandlerOrdering.csproj" />
1010
</ItemGroup>
1111
</Project>

src/Tests/Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<PackageReference Include="XunitContext" Version="3.3.2" />
1212
<PackageReference Include="MarkdownSnippets.MsBuild" Version="27.0.2" />
1313
<PackageReference Include="Verify.Xunit" Version="29.4.0" />
14-
<ProjectReference Include="..\HandlerOrdering\NServiceBus.HandlerOrdering.csproj" />
14+
<ProjectReference Include="..\HandlerOrdering\NServiceBus.Community.HandlerOrdering.csproj" />
1515
<PackageReference Include="ProjectDefaults" Version="1.0.150" PrivateAssets="all" />
1616
</ItemGroup>
1717
</Project>

src/Tests/TypeSorterTests.cs

Lines changed: 14 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,12 @@ public void Run()
88
{
99
var dependencies = new Dictionary<Type, List<Type>>
1010
{
11-
[typeof(Class1)] = new()
12-
{
11+
[typeof(Class1)] =
12+
[
1313
typeof(Class2),
1414
typeof(Class3)
15-
},
16-
[typeof(Class2)] = new()
17-
{
18-
typeof(Class3)
19-
}
15+
],
16+
[typeof(Class2)] = [typeof(Class3)]
2017
};
2118
var sorted = new TypeSorter(dependencies).Sorted;
2219
Assert.Equal(3, sorted.Count);
@@ -39,18 +36,12 @@ public void Run()
3936
{
4037
var dependencies = new Dictionary<Type, List<Type>>
4138
{
42-
[typeof(Class1)] = new()
43-
{
44-
typeof(Class2),
45-
},
46-
[typeof(Class2)] = new()
47-
{
48-
typeof(Class3)
49-
},
50-
[typeof(Class3)] = new()
51-
{
52-
typeof(Class1)
53-
}
39+
[typeof(Class1)] =
40+
[
41+
typeof(Class2)
42+
],
43+
[typeof(Class2)] = [typeof(Class3)],
44+
[typeof(Class3)] = [typeof(Class1)]
5445
};
5546
var exception = Assert.Throws<Exception>(() => new TypeSorter(dependencies));
5647
var expected =
@@ -76,10 +67,10 @@ public void Run()
7667
{
7768
var dependencies = new Dictionary<Type, List<Type>>
7869
{
79-
[typeof(Class1)] = new()
80-
{
81-
typeof(Class1),
82-
}
70+
[typeof(Class1)] =
71+
[
72+
typeof(Class1)
73+
]
8374
};
8475
var exception = Assert.Throws<Exception>(() => new TypeSorter(dependencies));
8576
var expected = """

src/global.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"sdk": {
3-
"version": "9.0.201",
3+
"version": "10.0.102",
44
"allowPrerelease": true,
55
"rollForward": "latestFeature"
66
}

0 commit comments

Comments
 (0)