MobileTrack.Common.Extensions Namespace

Contains a number of extension methods used on MobileTrack interfaces and .NET classes / structs. The methods are distributed based on category for ease of use. it is preferable to use these methods whenever possible, rather than creating new methods, to keep the codebase consistent. If you notice you have a new piece of code that is (likely) used in multiple places, consider creating a new extension method here.

Classes

GenericExtensions Extension functions for generic types (Strings, Int32's, etc.) or standard items from the System namespaces.
LoggerExtensions Pre-compiled ILoggerTCategoryName logging lines that the entire ecosystem uses.
MathExtensions Extension functions for math types
MfaExtensions Extensions for MfaConnectionDtos
ModelFactory Generate new instances of business objects.
ModelFourEyesExtensions Extension methods for 4-eyes implementation,
ModelGenericExtensions This class contains often-needed extensions for often-used basic constructs (IIdLabel, String, Int32, etc.)
ModelGenericModifiers Contains a number of extension methods that MobileTrack interfaces often use to modify their fields. These methods are intended to be re-used over and over to prevent bugs and repeated code.
ModelPolishExtensions Polished user input (or API input) to ensure conformity. If the input is of invalid value, then the polish-pass is skipped.
ModelValidatorsExtensions Validators for Action Flow type models.