HtmlElement.Net
|
Crates repeatable command being evaluated until command condition became true. More...
Public Member Functions | |
CommandBuilder () | |
Create new instance of command builder More... | |
CommandBuilder< TTarget > | Execute (Action< TTarget > command) |
Set command to be executed on target More... | |
CommandBuilder< TTarget > | Execute (Action command) |
Set command which does not require a target More... | |
CommandBuilder< TTarget > | On (TTarget target) |
Set command target. Synonym to WithTarget More... | |
CommandBuilder< TTarget > | For (TimeSpan commandTimeout) |
Set command timeout. Synonym to WithTimeout More... | |
CommandBuilder< TTarget > | Every (TimeSpan pollingInterval) |
Set command polling interval. Synonym to WithInterval More... | |
CommandBuilder< TTarget > | WithMessage (string errorMessage) |
Set message used to create exception when command times out More... | |
CommandBuilder< TTarget > | WithTarget (TTarget target) |
Set command target More... | |
CommandBuilder< TTarget > | WithInterval (TimeSpan pollingInterval) |
Set command polling interval More... | |
CommandBuilder< TTarget > | WithTimeout (TimeSpan commandTimeout) |
Set command timeout More... | |
CommandBuilder< TTarget > | Ignoring (params Type[] exceptions) |
Set types of exception which should be ignored when thrown by a command More... | |
void | Until (Predicate< TTarget > condition) |
Start execution loop in which command will be evaluated until condition evaluates to true or command timeout expires or command throw unexpected (not from ignore list) exception More... | |
void | Until (Func< bool > condition) |
Start execution loop in which command will be evaluated until condition evaluates to true or command timeout expires or command throw unexpected (not from ignore list) exception More... | |
Crates repeatable command being evaluated until command condition became true.
TTarget | Command target type |
HtmlElements.Extensions.CommandBuilder< TTarget >.CommandBuilder | ( | ) |
Create new instance of command builder
CommandBuilder<TTarget> HtmlElements.Extensions.CommandBuilder< TTarget >.Every | ( | TimeSpan | pollingInterval | ) |
Set command polling interval. Synonym to WithInterval
pollingInterval | Delay between sequential command executions |
CommandBuilder<TTarget> HtmlElements.Extensions.CommandBuilder< TTarget >.Execute | ( | Action | command | ) |
Set command which does not require a target
command | Command to execute |
CommandBuilder<TTarget> HtmlElements.Extensions.CommandBuilder< TTarget >.Execute | ( | Action< TTarget > | command | ) |
Set command to be executed on target
command | Command to execute |
CommandBuilder<TTarget> HtmlElements.Extensions.CommandBuilder< TTarget >.For | ( | TimeSpan | commandTimeout | ) |
Set command timeout. Synonym to WithTimeout
commandTimeout | Command expiration timeout |
CommandBuilder<TTarget> HtmlElements.Extensions.CommandBuilder< TTarget >.Ignoring | ( | params Type[] | exceptions | ) |
Set types of exception which should be ignored when thrown by a command
exceptions | Exception types to ignore |
CommandBuilder<TTarget> HtmlElements.Extensions.CommandBuilder< TTarget >.On | ( | TTarget | target | ) |
Set command target. Synonym to WithTarget
target | Command target |
void HtmlElements.Extensions.CommandBuilder< TTarget >.Until | ( | Func< bool > | condition | ) |
Start execution loop in which command will be evaluated until condition evaluates to true or command timeout expires or command throw unexpected (not from ignore list) exception
condition | Predicate telling weather command should be evaluated again |
void HtmlElements.Extensions.CommandBuilder< TTarget >.Until | ( | Predicate< TTarget > | condition | ) |
Start execution loop in which command will be evaluated until condition evaluates to true or command timeout expires or command throw unexpected (not from ignore list) exception
condition | Predicate telling weather command should be evaluated again |
CommandBuilder<TTarget> HtmlElements.Extensions.CommandBuilder< TTarget >.WithInterval | ( | TimeSpan | pollingInterval | ) |
Set command polling interval
pollingInterval | Delay between sequential command executions |
CommandBuilder<TTarget> HtmlElements.Extensions.CommandBuilder< TTarget >.WithMessage | ( | string | errorMessage | ) |
Set message used to create exception when command times out
errorMessage | Error message |
CommandBuilder<TTarget> HtmlElements.Extensions.CommandBuilder< TTarget >.WithTarget | ( | TTarget | target | ) |
Set command target
target | Command target |
CommandBuilder<TTarget> HtmlElements.Extensions.CommandBuilder< TTarget >.WithTimeout | ( | TimeSpan | commandTimeout | ) |
Set command timeout
commandTimeout | Command expiration timeout |