Skip to content

Commit

Permalink
Change LeaseDuration config from field to property (#285)
Browse files Browse the repository at this point in the history
* change field to property

* Approve API

---------

Co-authored-by: danielmarbach <daniel.marbach@openplace.net>
  • Loading branch information
timbussmann and danielmarbach committed Apr 25, 2023
1 parent 4f9f711 commit 6ad27b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ namespace NServiceBus.Persistence.DynamoDB
}
public class SagaPersistenceConfiguration
{
public System.TimeSpan LeaseDuration;
public SagaPersistenceConfiguration() { }
public System.TimeSpan LeaseAcquisitionTimeout { get; set; }
public System.TimeSpan LeaseDuration { get; set; }
public NServiceBus.Persistence.DynamoDB.TableConfiguration Table { get; set; }
public bool UsePessimisticLocking { get; set; }
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class SagaPersistenceConfiguration
/// <summary>
/// Defines the lease duration when using pessimistic locking.
/// </summary>
public TimeSpan LeaseDuration = TimeSpan.FromSeconds(30); // based on SQS visibility timeout
public TimeSpan LeaseDuration { get; set; } = TimeSpan.FromSeconds(30); // based on SQS visibility timeout

/// <summary>
/// How long the client should attempt to acquire a lock when using pessimistic locking before giving up.
Expand Down

0 comments on commit 6ad27b3

Please sign in to comment.