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.
19 lines
468 B
19 lines
468 B
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; }
|
|
} |