Skip to main content

Class UserIdManager

Provides a globally accessible user/device ID that persists across sessions. This static utility class handle loading the stored ID on disk. If no ID is found, a new one is generated and saved.

public class UserIdManager

Inheritance​

object→UserIdManager

Remarks​

The user ID is cached in memory after the first access to avoid redundant disk reads. The ID is stored via SaveData using the key SaveKey.

Properties​

UserID​

Gets the cached user ID, loading or generating it if it is not cached.

public static string UserID { get; }

Property Value​

string