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

Inheritance: IMirrorSelector, IDisposable
Mostra file Open project: SIXNetworks/withSIX.Desktop Class Usage Examples

Protected Properties

Property Type Description
FailedScoreIncreaseEvery System.TimeSpan

Public Methods

Method 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

Method 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 method

public Dispose ( ) : void
return void

Failure() public method

public Failure ( Uri host ) : void
host System.Uri
return void

GetHost() public method

public GetHost ( ) : Uri
return System.Uri

ProgramFailure() public method

public ProgramFailure ( ) : void
return void

ScoreMirrorSelector() public method

public ScoreMirrorSelector ( IHostChecker hostChecker ) : System
hostChecker IHostChecker
return System

ScoreMirrorSelector() public method

public ScoreMirrorSelector ( IHostChecker hostChecker, IReadOnlyCollection hostPool ) : System
hostChecker IHostChecker
hostPool IReadOnlyCollection
return System

ScoreMirrorSelector() public method

public ScoreMirrorSelector ( int scoreLimit, IHostChecker hostChecker ) : System
scoreLimit int
hostChecker IHostChecker
return System

ScoreMirrorSelector() public method

public ScoreMirrorSelector ( int scoreLimit, IHostChecker hostChecker, IReadOnlyCollection hostPool ) : System
scoreLimit int
hostChecker IHostChecker
hostPool IReadOnlyCollection
return System

Success() public method

public Success ( Uri host ) : void
host System.Uri
return void

Property Details

FailedScoreIncreaseEvery protected_oe property

protected TimeSpan,System FailedScoreIncreaseEvery
return System.TimeSpan