C# Class withSIX.Sync.Core.Transfer.MirrorSelectors.ScoreMirrorSelector

Inheritance: IMirrorSelector, IDisposable
Afficher le fichier Open project: SIXNetworks/withSIX.Desktop Class Usage Examples

Protected Properties

Свойство Type Description
FailedScoreIncreaseEvery System.TimeSpan

Méthodes publiques

Méthode Description
Dispose ( ) : void
Failure ( Uri host ) : void
GetHost ( ) : Uri
ProgramFailure ( ) : void
ScoreMirrorSelector ( IHostChecker hostChecker ) : System
ScoreMirrorSelector ( IHostChecker hostChecker, IReadOnlyCollection hostPool ) : System
ScoreMirrorSelector ( int scoreLimit, IHostChecker hostChecker ) : System
ScoreMirrorSelector ( int scoreLimit, IHostChecker hostChecker, IReadOnlyCollection hostPool ) : System
Success ( Uri host ) : void

Private Methods

Méthode Description
ConfirmHostExists ( Uri host ) : void
ConfirmHostValidity ( HostState state ) : void
ConfirmProgramFailures ( ) : void
DecreaseScore ( HostState hostState ) : void
GetFirstHost ( ) : HostState>.KeyValuePair
GetStatesToIncrease ( ) : IEnumerable
IncreaseScore ( HostState hostState ) : void
IncreaseScoresWhenNeeded ( ) : void
ThrowWhenHostPoolIsNullOrEmpty ( IEnumerable hostPool ) : void

Method Details

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Failure() public méthode

public Failure ( Uri host ) : void
host System.Uri
Résultat void

GetHost() public méthode

public GetHost ( ) : Uri
Résultat System.Uri

ProgramFailure() public méthode

public ProgramFailure ( ) : void
Résultat void

ScoreMirrorSelector() public méthode

public ScoreMirrorSelector ( IHostChecker hostChecker ) : System
hostChecker IHostChecker
Résultat System

ScoreMirrorSelector() public méthode

public ScoreMirrorSelector ( IHostChecker hostChecker, IReadOnlyCollection hostPool ) : System
hostChecker IHostChecker
hostPool IReadOnlyCollection
Résultat System

ScoreMirrorSelector() public méthode

public ScoreMirrorSelector ( int scoreLimit, IHostChecker hostChecker ) : System
scoreLimit int
hostChecker IHostChecker
Résultat System

ScoreMirrorSelector() public méthode

public ScoreMirrorSelector ( int scoreLimit, IHostChecker hostChecker, IReadOnlyCollection hostPool ) : System
scoreLimit int
hostChecker IHostChecker
hostPool IReadOnlyCollection
Résultat System

Success() public méthode

public Success ( Uri host ) : void
host System.Uri
Résultat void

Property Details

FailedScoreIncreaseEvery protected_oe property

protected TimeSpan,System FailedScoreIncreaseEvery
Résultat System.TimeSpan