logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class UnitySystemMonitorsProviderFactory

    Unity-specific factory for creating platform-appropriate system monitors providers.
    Uses compile-time directives to select the optimal implementation based on target platform.

    • Windows: Uses WindowsSystemMonitorsProvider with comprehensive Win32 API integration
    • Linux: Uses LinuxSystemMonitorsProvider with XRandR/Wayland/sysfs backends
    • Other platforms: Falls back to NullSystemMonitorsProvider using Unity's Screen API

    Ensures clean platform abstraction for system monitoring capabilities.

    Inheritance
    object
    UnitySystemMonitorsProviderFactory
    Implements
    ISystemMonitorsProviderFactory
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.SystemConfiguration.Infrastructure.Services
    Assembly: Serenity.UnitySystemConfiguration.Infrastructure.dll
    Syntax
    public class UnitySystemMonitorsProviderFactory : ISystemMonitorsProviderFactory

    Constructors

    UnitySystemMonitorsProviderFactory()

    Declaration
    public UnitySystemMonitorsProviderFactory()

    Methods

    Create()

    Creates a system monitors provider appropriate for the current build platform.
    Returns WindowsSystemMonitorsProvider on Windows platforms for comprehensive Win32 system monitoring.
    Returns LinuxSystemMonitorsProvider on Linux platforms for X11/Wayland/sysfs monitoring.
    Returns NullSystemMonitorsProvider on other platforms to maintain interface compatibility.

    Declaration
    public ISystemMonitorsProvider Create()
    Returns
    Type Description
    ISystemMonitorsProvider

    Platform-appropriate system monitors provider implementation

    Implements

    ISystemMonitorsProviderFactory
    In this article
    © 2026 Serenity. All Rights Reserved