Table of Contents

Class ServiceLock

Namespace
Geotab.Checkmate.ObjectModel.Lock
Assembly
Geotab.Checkmate.ObjectModel.dll

false A Process lock record.

public class ServiceLock : Entity, IEntity, IComparable, IIdentifiable
Inheritance
ServiceLock
Implements
Inherited Members

Constructors

ServiceLock()

Initializes a new instance of the ServiceLock class. false Constructor.

public ServiceLock()

ServiceLock(Id?, LockType?, string?, string?, DateTime?)

Initializes a new instance of the ServiceLock class. false Constructor.

public ServiceLock(Id? id, LockType? lockType, string? subject, string? holderName, DateTime? dateTime)

Parameters

id Id

The Id.

lockType LockType

The LockType.

subject string

The Subject.

holderName string

The holder Name.

dateTime DateTime?

The DateTime.

ServiceLock(LockType, string)

Initializes a new instance of the ServiceLock class. false Constructor.

public ServiceLock(LockType lockType, string subject)

Parameters

lockType LockType

The LockType.

subject string

The Subject.

Properties

DateTime

Gets or sets the UTC time of the last lock update.

public DateTime? DateTime { get; set; }

Property Value

DateTime?

The holder time.

DefaultUpdateInterval

Gets default lock update interval.

public static TimeSpan DefaultUpdateInterval { get; }

Property Value

TimeSpan

Default lock update interval.

HolderName

Gets or sets the Holder of the lock.

public string? HolderName { get; set; }

Property Value

string

The holder Name.

Subject

Gets or sets the subject.

public string? Subject { get; set; }

Property Value

string

The subject.

Type

Gets or sets the LockType of the lock.

public LockType? Type { get; set; }

Property Value

LockType

The type.

Methods

Clone()

Creates a new object that is a copy of the current instance.

public override IEntity Clone()

Returns

IEntity

A new object that is a copy of this instance.

GetIdentity()

false Gets an object that encapsulates specific logic of comparing Lock objects to each other.

public object? GetIdentity()

Returns

object

The identity instance or null value if the ServiceLock instance hasn't been added to the database.

GetIdentityName()

Gets the name of this entity that uniquely identifies it and is used when displaying this entity.

public string GetIdentityName()

Returns

string

The name.