Skip to content

MembershipEntry Methods

Represents a silo's membership record.

AddOrUpdateSuspector(SiloAddress, DateTime, int)

View source
public void AddOrUpdateSuspector(SiloAddress localSilo, DateTime voteTime, int maxVotes)
Adds or updates a silo's vote to declare this silo unavailable.

Parameters

localSiloSiloAddress
The silo casting the vote.
voteTimeDateTime
The time at which the vote was cast.
maxVotesint
The maximum number of votes to retain.

AddSuspector(SiloAddress, DateTime)

View source
public void AddSuspector(SiloAddress suspectingSilo, DateTime suspectingTime)
Adds a silo's vote to declare this silo unavailable.

Parameters

suspectingSiloSiloAddress
The silo casting the vote.
suspectingTimeDateTime
The time at which the vote was cast.

ToFullString

View source
public string ToFullString()
Returns a detailed string representation of the membership entry.

Returns

A detailed string representation of the membership entry.

ToString

override
View source
public override string ToString()
Returns a string that represents the current object.

Returns

A string that represents the current object.