-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use classes with init-only props instead of records for Service Bus e…
…ntities options (#28)
- Loading branch information
1 parent
db67cf1
commit 625d1ea
Showing
2 changed files
with
10 additions
and
2 deletions.
There are no files selected for viewing
6 changes: 5 additions & 1 deletion
6
src/Spotflow.InMemory.Azure.ServiceBus/Resources/InMemoryServiceBusQueueOptions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
namespace Spotflow.InMemory.Azure.ServiceBus.Resources; | ||
|
||
public record InMemoryServiceBusQueueOptions(bool EnableSessions = false, TimeSpan? LockTime = null); | ||
public class InMemoryServiceBusQueueOptions | ||
{ | ||
public bool EnableSessions { get; init; } = false; | ||
public TimeSpan? LockTime { get; init; } = null; | ||
} |
6 changes: 5 additions & 1 deletion
6
src/Spotflow.InMemory.Azure.ServiceBus/Resources/InMemoryServiceBusSubscriptionOptions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
namespace Spotflow.InMemory.Azure.ServiceBus.Resources; | ||
|
||
public record InMemoryServiceBusSubscriptionOptions(bool EnableSessions = false, TimeSpan? LockTime = null); | ||
public class InMemoryServiceBusSubscriptionOptions | ||
{ | ||
public bool EnableSessions { get; init; } = false; | ||
public TimeSpan? LockTime { get; init; } = null; | ||
} |