Skip to content

Commit

Permalink
repair project file and hide some things that were not meant to be pu…
Browse files Browse the repository at this point in the history
…blic
  • Loading branch information
mookid8000 committed Feb 3, 2017
1 parent 5c009b8 commit 673f1d5
Show file tree
Hide file tree
Showing 10 changed files with 153 additions and 170 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Expand Up @@ -1140,6 +1140,10 @@

* Provide `FakeSyncBus` implementation of `ISyncBus`, which can be used to record events for testing

## 4.0.0

* Hide some internal types that were never meant to be part of the API

---

[AndreaCuneo]: https://github.com/AndreaCuneo
Expand Down
12 changes: 6 additions & 6 deletions Rebus.Forklift.Common/Rebus.Forklift.Common.csproj
Expand Up @@ -48,18 +48,18 @@
<None Include="Properties\AssemblyInfo.cs" />
<Compile Include="Text.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Rebus\Rebus.csproj">
<Project>{7D7B7B36-6298-4E85-9A0E-1B415C5B9D12}</Project>
<Name>Rebus</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
<None Include="Rebus.Forklift.Common.nuspec">
<SubType>Designer</SubType>
</None>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Rebus\Rebus.csproj">
<Project>{319215F6-B626-4271-8EDA-E31B876F65C0}</Project>
<Name>Rebus</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PreBuildEvent>$(ProjectDir)\..\scripts\patch_assemblyinfo.cmd $(ProjectDir)</PreBuildEvent>
Expand Down
10 changes: 5 additions & 5 deletions Rebus.NewtonsoftJson/Rebus.NewtonsoftJson.csproj
Expand Up @@ -48,16 +48,16 @@
<Compile Include="NewtonsoftJsonConfigurationExtensions.cs" />
<None Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
<None Include="Rebus.NewtonsoftJson.nuspec" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Rebus\Rebus.csproj">
<Project>{7D7B7B36-6298-4E85-9A0E-1B415C5B9D12}</Project>
<Project>{319215F6-B626-4271-8EDA-E31B876F65C0}</Project>
<Name>Rebus</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
<None Include="Rebus.NewtonsoftJson.nuspec" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PreBuildEvent>$(ProjectDir)\..\scripts\patch_assemblyinfo.cmd $(ProjectDir)</PreBuildEvent>
Expand Down
3 changes: 1 addition & 2 deletions Rebus.Tests.Contracts/Rebus.Tests.Contracts.csproj
Expand Up @@ -104,11 +104,10 @@
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Rebus\Rebus.csproj">
<Project>{7D7B7B36-6298-4E85-9A0E-1B415C5B9D12}</Project>
<Project>{319215F6-B626-4271-8EDA-E31B876F65C0}</Project>
<Name>Rebus</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PreBuildEvent>$(ProjectDir)\..\scripts\patch_assemblyinfo.cmd $(ProjectDir)</PreBuildEvent>
Expand Down
4 changes: 1 addition & 3 deletions Rebus.Tests/Rebus.Tests.csproj
Expand Up @@ -49,10 +49,8 @@
<Reference Include="System" />
<Reference Include="System.Configuration" />
<Reference Include="System.Core" />
<Reference Include="System.Messaging" />
<Reference Include="System.Xml.Linq" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
Expand Down Expand Up @@ -200,7 +198,7 @@
<Name>Rebus.Tests.Contracts</Name>
</ProjectReference>
<ProjectReference Include="..\Rebus\Rebus.csproj">
<Project>{7D7B7B36-6298-4E85-9A0E-1B415C5B9D12}</Project>
<Project>{319215F6-B626-4271-8EDA-E31B876F65C0}</Project>
<Name>Rebus</Name>
</ProjectReference>
</ItemGroup>
Expand Down
254 changes: 125 additions & 129 deletions Rebus/Rebus.csproj

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Rebus/Sagas/CorrelationProperty.cs
Expand Up @@ -6,7 +6,7 @@ namespace Rebus.Sagas
/// <summary>
/// Represents a mapping from a field of an incoming message of a specific type to a specific property on a specific type of saga data
/// </summary>
public class CorrelationProperty : ISagaCorrelationProperty
class CorrelationProperty : ISagaCorrelationProperty
{
/// <summary>
/// Defines the types that are allowed to use with saga data properties that are intended for correlation
Expand Down
16 changes: 1 addition & 15 deletions Rebus/Sagas/SagaDataCorrelationProperties.cs
Expand Up @@ -9,7 +9,7 @@ namespace Rebus.Sagas
/// <summary>
/// Contains a set of correlation properties relevant for one particular saga data
/// </summary>
public class SagaDataCorrelationProperties : IEnumerable<CorrelationProperty>
class SagaDataCorrelationProperties : IEnumerable<CorrelationProperty>
{
readonly Dictionary<Type, CorrelationProperty[]> _correlationProperties;
readonly Type _sagaDataType;
Expand All @@ -35,8 +35,6 @@ public IEnumerable<CorrelationProperty> ForMessage(object body)

var messageType = body.GetType();

//var potentialCorrelationProperties = new List<CorrelationProperty>();

var potentialCorrelationProperties = new [] {messageType}.Concat(messageType.GetBaseTypes())
.SelectMany(type =>
{
Expand All @@ -47,18 +45,6 @@ public IEnumerable<CorrelationProperty> ForMessage(object body)
: new CorrelationProperty[0];
})
.ToList();
//var messageTypeToCheck = messageType;
//while (messageTypeToCheck != null)
//{
// CorrelationProperty[] potentialCorrelationproperties;

// if (_correlationProperties.TryGetValue(messageTypeToCheck, out potentialCorrelationproperties))
// {
// potentialCorrelationProperties.AddRange(potentialCorrelationproperties);
// }

// messageTypeToCheck = messageTypeToCheck.BaseType;
//}

if (!potentialCorrelationProperties.Any())
{
Expand Down
2 changes: 1 addition & 1 deletion Rebus/Sagas/SagaHelper.cs
Expand Up @@ -8,7 +8,7 @@ namespace Rebus.Sagas
/// <summary>
/// Helper class that can cache configured sets of correlation properties for various saga types
/// </summary>
public class SagaHelper
class SagaHelper
{
readonly ConcurrentDictionary<string, Dictionary<Type, CorrelationProperty[]>> _cachedCorrelationProperties
= new ConcurrentDictionary<string, Dictionary<Type, CorrelationProperty[]>>();
Expand Down
16 changes: 8 additions & 8 deletions Rebus2.sln
@@ -1,13 +1,11 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.26014.0
VisualStudioVersion = 15.0.26127.3
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "packages", "packages", "{63AB64A3-A453-4663-BDB6-530F2136609D}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Rebus.Tests", "Rebus.Tests\Rebus.Tests.csproj", "{959C65AB-D21A-4582-BC4F-06D1425FF274}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Rebus", "Rebus\Rebus.csproj", "{7D7B7B36-6298-4E85-9A0E-1B415C5B9D12}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".build", ".build", "{1692C59F-82DB-43D3-9982-C883B99E38B2}"
ProjectSection(SolutionItems) = preProject
scripts\build.cmd = scripts\build.cmd
Expand All @@ -29,6 +27,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Rebus.Tests.Contracts", "Re
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tests", "tests", "{EAB8CED5-4383-48F3-AB54-E57278CDD93B}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Rebus", "Rebus\Rebus.csproj", "{319215F6-B626-4271-8EDA-E31B876F65C0}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand All @@ -39,10 +39,6 @@ Global
{959C65AB-D21A-4582-BC4F-06D1425FF274}.Debug|Any CPU.Build.0 = Debug|Any CPU
{959C65AB-D21A-4582-BC4F-06D1425FF274}.Release|Any CPU.ActiveCfg = Release|Any CPU
{959C65AB-D21A-4582-BC4F-06D1425FF274}.Release|Any CPU.Build.0 = Release|Any CPU
{7D7B7B36-6298-4E85-9A0E-1B415C5B9D12}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{7D7B7B36-6298-4E85-9A0E-1B415C5B9D12}.Debug|Any CPU.Build.0 = Debug|Any CPU
{7D7B7B36-6298-4E85-9A0E-1B415C5B9D12}.Release|Any CPU.ActiveCfg = Release|Any CPU
{7D7B7B36-6298-4E85-9A0E-1B415C5B9D12}.Release|Any CPU.Build.0 = Release|Any CPU
{9D2E0972-0006-4CBA-8DC9-3B5A0D3571ED}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{9D2E0972-0006-4CBA-8DC9-3B5A0D3571ED}.Debug|Any CPU.Build.0 = Debug|Any CPU
{9D2E0972-0006-4CBA-8DC9-3B5A0D3571ED}.Release|Any CPU.ActiveCfg = Release|Any CPU
Expand All @@ -55,15 +51,19 @@ Global
{F1CFF884-8176-48C2-9D51-E9DAAC8E11FB}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F1CFF884-8176-48C2-9D51-E9DAAC8E11FB}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F1CFF884-8176-48C2-9D51-E9DAAC8E11FB}.Release|Any CPU.Build.0 = Release|Any CPU
{319215F6-B626-4271-8EDA-E31B876F65C0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{319215F6-B626-4271-8EDA-E31B876F65C0}.Debug|Any CPU.Build.0 = Debug|Any CPU
{319215F6-B626-4271-8EDA-E31B876F65C0}.Release|Any CPU.ActiveCfg = Release|Any CPU
{319215F6-B626-4271-8EDA-E31B876F65C0}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{959C65AB-D21A-4582-BC4F-06D1425FF274} = {EAB8CED5-4383-48F3-AB54-E57278CDD93B}
{7D7B7B36-6298-4E85-9A0E-1B415C5B9D12} = {63AB64A3-A453-4663-BDB6-530F2136609D}
{9D2E0972-0006-4CBA-8DC9-3B5A0D3571ED} = {63AB64A3-A453-4663-BDB6-530F2136609D}
{EE1EF14E-78B6-4F9C-B3C2-FAFF43A7DF1B} = {63AB64A3-A453-4663-BDB6-530F2136609D}
{F1CFF884-8176-48C2-9D51-E9DAAC8E11FB} = {63AB64A3-A453-4663-BDB6-530F2136609D}
{319215F6-B626-4271-8EDA-E31B876F65C0} = {63AB64A3-A453-4663-BDB6-530F2136609D}
EndGlobalSection
EndGlobal

0 comments on commit 673f1d5

Please sign in to comment.