Struct WorkspaceLockInfo
- Namespace
- Kuestenlogik.Bowire.Workspace.Git
- Assembly
- Kuestenlogik.Bowire.Workspace.Git.dll
Snapshot of a workspace lock holder's metadata — populated when AcquireAsync(string, string, CancellationToken) hits an active lock and surfaced on Holder, plus returned from Inspect(string) for diagnostic CLIs.
public readonly struct WorkspaceLockInfo : IEquatable<WorkspaceLockInfo>
- Implements
- Inherited Members
Constructors
WorkspaceLockInfo(int, string, string, DateTimeOffset)
Snapshot of a workspace lock holder's metadata — populated when AcquireAsync(string, string, CancellationToken) hits an active lock and surfaced on Holder, plus returned from Inspect(string) for diagnostic CLIs.
public WorkspaceLockInfo(int Pid, string Writer, string Host, DateTimeOffset StartedAtUtc)
Parameters
PidintOS process id of the holder.
WriterstringFree-form holder tag (e.g.
workbench,cli).HoststringMachine name the holder reported via MachineName.
StartedAtUtcDateTimeOffsetWhen the holder acquired the lock.
Properties
Host
Machine name the holder reported via MachineName.
public string Host { get; init; }
Property Value
Pid
OS process id of the holder.
public int Pid { get; init; }
Property Value
StartedAtUtc
When the holder acquired the lock.
public DateTimeOffset StartedAtUtc { get; init; }
Property Value
Writer
Free-form holder tag (e.g. workbench, cli).
public string Writer { get; init; }
Property Value
Methods
Deconstruct(out int, out string, out string, out DateTimeOffset)
public void Deconstruct(out int Pid, out string Writer, out string Host, out DateTimeOffset StartedAtUtc)
Parameters
PidintWriterstringHoststringStartedAtUtcDateTimeOffset
Equals(WorkspaceLockInfo)
public bool Equals(WorkspaceLockInfo other)
Parameters
otherWorkspaceLockInfo
Returns
Equals(object)
public override bool Equals(object obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(WorkspaceLockInfo, WorkspaceLockInfo)
public static bool operator ==(WorkspaceLockInfo left, WorkspaceLockInfo right)
Parameters
leftWorkspaceLockInforightWorkspaceLockInfo
Returns
operator !=(WorkspaceLockInfo, WorkspaceLockInfo)
public static bool operator !=(WorkspaceLockInfo left, WorkspaceLockInfo right)
Parameters
leftWorkspaceLockInforightWorkspaceLockInfo