LowMemoryNotificationContext Constructor

Initializes a new instance of the LowMemoryNotificationContext class.

Definition

Namespace: DevCase.Core.IO.Memory
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public LowMemoryNotificationContext(
	ulong minimum,
	Action action,
	int period = 1000
)

Parameters

minimum  UInt64
The minimum required memory, in bytes.

If the total amount of free physical memory for the computer is lower than this value, the Action specified in action parameter will be invoked once.

action  Action
The Action to invoke once if a low-memory notification occurs.
period  Int32  (Optional)
The time interval, in milliseconds, used to periodically check the total amount of free physical memory for the computer.

Default value is 1000 (1 second).

See Also