Skip to main content

PoolMemberRegistrationResultDto

Namespace: Meshmakers.Octo.Communication.Contracts.DataTransferObjects

The controller's answer to IAdapterPoolHub.RegisterPoolMemberAsync (AB#4924).

public record PoolMemberRegistrationResultDto : IEquatable<PoolMemberRegistrationResultDto>

Inheritance ObjectPoolMemberRegistrationResultDto
Implements IEquatable<PoolMemberRegistrationResultDto>

Properties

Accepted

Whether the member is now eligible for leases. A rejected registration keeps the connection open — the member logs and retries — rather than aborting it, so a pool that is momentarily unresolvable (mid tenant update) does not turn into a crash loop.

public bool Accepted { get; set; }

Property Value

Boolean

MemberId

The member id the controller will use. Echoes PoolMemberRegistrationDto.MemberId when it was usable and substitutes the connection id when it was blank, so the member can log the value its executions will be attributed to.

public string MemberId { get; set; }

Property Value

String

HeartbeatIntervalSeconds

How often the member should call HeartbeatAsync, in seconds. The controller expires a lease held by a member it has not heard from — concept §6, "release never arrives".

public int HeartbeatIntervalSeconds { get; set; }

Property Value

Int32

StatusMessage

Why a registration was refused. Null on success.

public string StatusMessage { get; set; }

Property Value

String

Constructors

PoolMemberRegistrationResultDto()

public PoolMemberRegistrationResultDto()