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.
Declaration
public static bool? CheckWithinTimeout(SupplierWithException<bool?> supplier, TimeSpan timeout)
Parameters
Type | Name | Description |
---|---|---|
Supplier |
supplier | Delegate to be checked |
System. |
timeout | Timeout |
Returns
Type | Description |
---|---|
System. |
Check result |
Exceptions
Type | Condition |
---|---|
System. |
Equals<T>(IList<T>, IList<T>)
Declaration
public static bool Equals<T>(IList<T> first, IList<T> second)
Parameters
Type | Name | Description |
---|---|---|
System. |
first | |
System. |
second |
Returns
Type | Description |
---|---|
System. |
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 |
---|---|---|
Supplier |
supplier | Delegate to be checked |
System. |
timeout | Timeout |
Returns
Type | Description |
---|---|
System. |
Check result |