Class CheckingUtils
Inheritance
System.Object
CheckingUtils
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: FixAntenna.Common.Utils
Assembly: FixAntenna.Common.dll
Syntax
public class CheckingUtils
Methods
CheckWithinTimeout(SupplierWithException<Nullable<Boolean>>, TimeSpan)
Continuously check expression inside lambda till condition or timeout is met. System.TimeoutException is thrown if condition is not met within the given timeout. Condition is checked every 5 ms.
Declaration
public static bool? CheckWithinTimeout(SupplierWithException<bool?> supplier, TimeSpan timeout)
Parameters
| Type | Name | Description |
|---|---|---|
| SupplierWithException<System.Nullable<System.Boolean>> | supplier | Delegate to be checked |
| System.TimeSpan | timeout | Timeout |
Returns
| Type | Description |
|---|---|
| System.Nullable<System.Boolean> | Check result |
Exceptions
| Type | Condition |
|---|---|
| System.TimeoutException |
Equals<T>(IList<T>, IList<T>)
Declaration
public static bool Equals<T>(IList<T> first, IList<T> second)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.Generic.IList<T> | first | |
| System.Collections.Generic.IList<T> | second |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Type Parameters
| Name | Description |
|---|---|
| T |
TryCheckWithinTimeout(SupplierWithException<Nullable<Boolean>>, TimeSpan)
Continuously check expression inside lambda till condition or timeout is met. No exception is thrown if condition is not met within the given timeout. Condition is checked every 5 ms.
Declaration
public static bool? TryCheckWithinTimeout(SupplierWithException<bool?> supplier, TimeSpan timeout)
Parameters
| Type | Name | Description |
|---|---|---|
| SupplierWithException<System.Nullable<System.Boolean>> | supplier | Delegate to be checked |
| System.TimeSpan | timeout | Timeout |
Returns
| Type | Description |
|---|---|
| System.Nullable<System.Boolean> | Check result |