Skip to content

Commit efbccc4

Browse files
committed
Update deps and fix some tests
1 parent d58a4c7 commit efbccc4

File tree

3 files changed

+22
-1
lines changed

3 files changed

+22
-1
lines changed

Foundatio.sln

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
1313
src\Directory.Build.props = src\Directory.Build.props
1414
samples\Directory.Build.props = samples\Directory.Build.props
1515
NuGet.config = NuGet.config
16+
global.json = global.json
17+
Dockerfile = Dockerfile
1618
README.md = README.md
1719
EndProjectSection
1820
EndProject
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
- Multiple receivers (pub/sub)
2+
- Fire and forget
3+
- Message acknowledgement
4+
- Worker queues
5+
- Single Worker
6+
- Round robin workers
7+
- Delayed delivery
8+
- 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
9+
- Message persistence
10+
- Not all messages need to be persisted and guaranteed delivery
11+
- Message subscriptions are push based with prefetch count setting which should greatly improve throughput
12+
- Can either use generic method overloads or use options to change the message type or topic the message is being published to
13+
- Can subscribe to multiple message types by controlling the message topic instead of using the default topic per .net type
14+
- Request/response
15+
- 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
16+
- Receive message (pull model)
17+
- Equivalent of current worker queues pulling a single message at a time
18+
- Ability to receive a batch of messages

tests/Foundatio.Tests/Utility/SystemClockTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,10 @@ public void CanSetTime() {
2121
Assert.Equal(now.ToLocalTime(), clock.Now);
2222
Assert.Equal(now.ToUniversalTime(), clock.OffsetUtcNow);
2323

24+
// set using utc
2425
now = DateTime.UtcNow;
2526
clock.SetTime(now);
26-
Assert.Equal(now, clock.Now);
27+
Assert.Equal(now, clock.UtcNow);
2728
Assert.Equal(DateTimeOffset.Now.Offset, clock.Offset);
2829
Assert.Equal(now.ToUniversalTime(), clock.UtcNow);
2930
Assert.Equal(now.ToLocalTime(), clock.Now);

0 commit comments

Comments
 (0)