SystemLibrary.Common.Net
Classes
Assemblies
Static functions running on loaded Assemblies in your application
Async
Run methods in a non-blocking manner
Config<T>
Class to load and read configuration files (xml, json or config) as a Class with transformations if exist and with decrypting encrypted properties
Configurations can be placed in either:
~/*.json, ~/*.xml, ~/Configs/**.[json|xml], or ~/Configurations/**.[json|xml]Or appended to your existing 'appSettings.json' file
Transformations are ran based on the 'ASPNETCORE_ENVIRONMENT' variable passed to your applicationRecommended places to set ASPNETCORE_ENVIRONMENT:
- launchSettings.json when using IIS Express- web.config if you use IIS
- mstest.runsettings if you run transformations in unit tests- commandline with --configuration if running as 'exe'
DateJsonConverter
Date json converter converts a DateTime to 'yyyy-MM-dd'
Useful when you just need the date, ignoring time, by adding this to the datetime property through [JsonConverter] attribute
DateTimeJsonConverter
Use to convert a string to DateTime during Json() invocation with your own format
DateTimeOffsetJsonConverter
DateTime json converter that takes a string format
JsonEncryptAttribute
Encrypt and decrypt a property or field on receival or sending of a Model
Useful when you want to hide productId's or similar in Frontend part of your application. Avoids having int's or ID's in the frontend, for attackers wanting to brute force endpoints taking INTs
JsonObfuscateAttribute
Obfuscate and deobfuscate a property or field on receival or sending of a Model
Useful when you want to hide productId's or similar in Frontend part of your application. Avoids having int's or ID's in the frontend, for attackers wanting to brute force endpoints taking INTs
Randomness
Shortcut for generating random variables through System.Random
Services
Services is a global way to reuse the configured service provider and collection
SystemType
Static class containing common "typeof" calls for performance reasons