Skip to content

Commit

Permalink
Update deps and fix some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ejsmith committed Jun 12, 2019
1 parent f3e08d4 commit 2d48727
Show file tree
Hide file tree
Showing 13 changed files with 39 additions and 12 deletions.
5 changes: 4 additions & 1 deletion Foundatio.sln
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,11 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
.editorconfig = .editorconfig
appveyor.yml = appveyor.yml
build\common.props = build\common.props
README.md = README.md
src\Directory.Build.props = src\Directory.Build.props
tests\Directory.Build.props = tests\Directory.Build.props
Dockerfile = Dockerfile
global.json = global.json
README.md = README.md
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Samples", "Samples", "{A1DFF80C-113F-4FEC-84BB-1E3790FB410F}"
Expand Down
2 changes: 1 addition & 1 deletion build/common.props
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-beta2-18618-05" PrivateAssets="All"/>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0-beta2-19270-01" PrivateAssets="All"/>
<PackageReference Include="AsyncFixer" Version="1.1.6" PrivateAssets="All" />
</ItemGroup>

Expand Down
5 changes: 5 additions & 0 deletions global.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"sdk": {
"version": "2.2.300"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.App" />
<PackageReference Include="Serilog.AspNetCore" Version="2.1.1" />
<PackageReference Include="Serilog.Settings.Configuration" Version="3.0.1" />
<PackageReference Include="Serilog.Settings.Configuration" Version="3.1.0" />
<PackageReference Include="Serilog.Sinks.Console" Version="3.1.1" />
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion src/Foundatio.AppMetrics/Foundatio.AppMetrics.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PackageTags>$(PackageTags);AppMetrics;Logging;Log</PackageTags>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="App.Metrics.Abstractions" Version="3.0.0" />
<PackageReference Include="App.Metrics.Abstractions" Version="3.1.0" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Foundatio\Foundatio.csproj" />
Expand Down
2 changes: 1 addition & 1 deletion src/Foundatio.Hosting/Foundatio.Hosting.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Hosting.Abstractions" Version="2.2.0" />
<PackageReference Include="Microsoft.Extensions.Diagnostics.HealthChecks" Version="2.2.0" />
<PackageReference Include="Microsoft.Extensions.Diagnostics.HealthChecks" Version="2.2.5" />
<PackageReference Include="Microsoft.Extensions.Options" Version="2.2.0" />
</ItemGroup>
<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/Foundatio.Jobs.Commands/Foundatio.Jobs.Commands.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.CommandLineUtils" Version="1.1.1" />
<PackageReference Include="Newtonsoft.Json" Version="12.0.1" />
<PackageReference Include="Newtonsoft.Json" Version="12.0.2" />
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion src/Foundatio.JsonNet/Foundatio.JsonNet.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="12.0.1" />
<PackageReference Include="Newtonsoft.Json" Version="12.0.2" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Foundatio\Foundatio.csproj" />
Expand Down
2 changes: 1 addition & 1 deletion src/Foundatio/Foundatio.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<ItemGroup>
<PackageReference Include="MessagePack" Version="1.7.3.4" />
<PackageReference Include="MessagePack" Version="1.7.3.7" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="2.2.0" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="2.2.0" />
</ItemGroup>
Expand Down
18 changes: 18 additions & 0 deletions src/Foundatio/Messaging/scenarios.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
- Multiple receivers (pub/sub)
- Fire and forget
- Message acknowledgement
- Worker queues
- Single Worker
- Round robin workers
- Delayed delivery
- Can schedule delivery, messages are persisted to a message store and a background task polls for messages that are due and then sends them out
- Message persistence
- Not all messages need to be persisted and guaranteed delivery
- Message subscriptions are push based with prefetch count setting which should greatly improve throughput
- Can either use generic method overloads or use options to change the message type or topic the message is being published to
- Can subscribe to multiple message types by controlling the message topic instead of using the default topic per .net type
- Request/response
- Publishes message and then does a single message receive on a topic that is for that exact request and waits the specified amount of time
- Receive message (pull model)
- Equivalent of current worker queues pulling a single message at a time
- Ability to receive a batch of messages
2 changes: 1 addition & 1 deletion tests/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<IsPackable>False</IsPackable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.0.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.1.1" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1" />
</ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions tests/Foundatio.Tests/Metrics/StatsDMetricsTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ public class StatsDMetricsTests : TestWithLoggingBase, IDisposable {
private readonly TestUdpListener _listener;

public StatsDMetricsTests(ITestOutputHelper output) : base(output) {
_listener = new TestUdpListener("224.0.0.1", _port, Log);
_client = new StatsDMetricsClient(o => o.Server("224.0.0.1", _port).Prefix("test"));
_listener = new TestUdpListener("127.0.0.1", _port, Log);
_client = new StatsDMetricsClient(o => o.Server("127.0.0.1", _port).Prefix("test"));
}

[Fact]
Expand Down
3 changes: 2 additions & 1 deletion tests/Foundatio.Tests/Utility/SystemClockTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@ public class SystemClockTests : TestWithLoggingBase {
Assert.Equal(now.ToLocalTime(), clock.Now);
Assert.Equal(now.ToUniversalTime(), clock.OffsetUtcNow);

// set using utc
now = DateTime.UtcNow;
clock.SetTime(now);
Assert.Equal(now, clock.Now);
Assert.Equal(now, clock.UtcNow);
Assert.Equal(DateTimeOffset.Now.Offset, clock.Offset);
Assert.Equal(now.ToUniversalTime(), clock.UtcNow);
Assert.Equal(now.ToLocalTime(), clock.Now);
Expand Down

0 comments on commit 2d48727

Please sign in to comment.