Skip to content

Commit

Permalink
Use classes with init-only props instead of records for Service Bus e…
Browse files Browse the repository at this point in the history
…ntities options (#28)
  • Loading branch information
tomas-pajurek authored Nov 17, 2024
1 parent db67cf1 commit 625d1ea
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
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;
}
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;
}

0 comments on commit 625d1ea

Please sign in to comment.