Functions for C # System State

I am looking for general system state functions for Mono. I need:

  • Memory (available, total)
  • Free disk space
  • IP address
  • External IP
  • Running processes / services / daemons

How to get it?

Thanks in advance,

Yvan

+3
source share
1 answer

In the order of your list requirements, I have allocated the necessary namespaces for these functions. Since you did not ship the platform ...

  • Memory (available / shared) Perhaps the System.Environment class?
  • Free disk space (Mono.Unix.DriveInfo namespace) System.IO.DriveInfo?
  • IP number (Mono.Unix.UnixEndPoint) System.Net.EndPoint?
  • IP- - , ipconfig ifconfig .
  • // (Mono.Unix.UnixProcess). System.Diagnostics.Process ?

, , , .

+3

Source: https://habr.com/ru/post/1730673/


All Articles