Namespace Azos.Platform
Classes
Computer
Facilitates various computer-related tasks such as CPU usage, memory utilization etc.
EmbeddedResource
Fetches resources such as script statement text by scriptName from assembly resource stream. Mostly used for SQL and JavaScript but maybe used for any text retrieval. This class is 100% safe for multi-threading operations. Script texts are cached in ram for faster subsequent access.
HostNetInfo
Provides information about IP network host
HostNetInfo.NetAdapterInfo
Describes a network adapter on subordinate host
HostNetInfo.NetAddrInfo
Describes an address supported by net adapter
KeyedMonitor<TKey>
Provides Monitor thread synchronization functionality over lock objects addressable by key(name). This class is thread-safe. The internal implementation is based on a fixed-size array of Dictionary objects to minimize inter-locking. Do not allocate/deallocate this class often, instead allocate once per service that needs to synchronize by keys and call methods on the instance.
NetworkUtils
Provides network-related utilities
ProcessRunner
Provides simple process invocation and output capture functionality
RandomGenerator
Represents a random generator which is based on System.Random() yet has an ability to feed external samples into it. Use RandomGenerator.Instance to use the default thread-safe instance or use App.Random shortcut
Structs
ManyReadersOneWriterSynchronizer
This struct is for ADVANCED SYSTEM use-cases. DEVELOPERS: do not use this in a business application code. Represents an efficient SpinWait/Yield-based lock that allows many readers to operate concurrently and only one single concurrent writer. This struct must be used ONLY with a very fast/tight operations that do not block on IO and other locks, and are expected to complete under a tenth fraction of a second. Warning: this lock CAN NOT be held for longer than 5 hrs by design. DO NOT use this lock with IO-dependent operations. This is not really a limitation as this class is used to guard operations which are very fast (fractions of a second) and should fail faster otherwise. This lock IS NOT REENTRANT!
MemoryStatus
Provides current memory status snapshot
Enums
OSFamily
Denotes primary OS Families: Win/Mac/Lin*nix