src/Orleans.Runtime/MembershipService/ClusterMembershipSnapshot.cs
/// <summary>
/// Gets status of the specified silo.
/// </summary>
/// <param name="silo">The silo.</param>
/// <returns>The status of the specified silo.</returns>
Gets status of the specified silo.
Gets status of the specified silo .
public SiloStatus GetSiloStatus(SiloAddress silo)
        {
            var status = this.Members.TryGetValue(silo, out var entry) ? entry.Status : SiloStatus.None;
            if (status == SiloStatus.None)
            {
                foreach (var member in this.Members)
                {
                    if (member.Key.IsSuccessorOf(silo))
                    {
                        status = SiloStatus.Dead;
                        break;
                    }
                }
            }
            return status;
        }
public SiloStatus GetSiloStatus ( SiloAddress silo ) { var status = this . Members . TryGetValue ( silo , out var entry ) ? entry . Status : SiloStatus . None ; if ( status == SiloStatus . None ) { foreach ( var member in this . Members ) { if ( member . Key . IsSuccessorOf ( silo ) ) { status = SiloStatus . Dead ; break ; } } } return status ; }
Gets status of the specified silo.
Gets status of the specified silo .
The status of the specified silo.
The status of the specified silo .
silo
SiloAddress
None