You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Connected.Common/Common/Distributed/DistributedLockArgs.cs

19 lines
468 B

2 years ago
using Connected.ServiceModel;
using System.ComponentModel.DataAnnotations;
namespace Common.Distributed;
public sealed class DistributedLockArgs : Dto
{
[Required, MaxLength(128)]
public string Entity { get; set; } = default!;
[Required, MaxLength(128)]
public string EntityId { get; set; } = default!;
public TimeSpan? Duration { get; set; }
}
public sealed class DistributedLockPingArgs : PrimaryKeyArgs<Guid>
{
public TimeSpan? Duration { get; set; }
}