ResourceInfo
Record · Namespace OMX.ModAPI · Assembly OMX.ModAPI.Shared.dll
public sealed record ResourceInfoA resource’s identity. ResourceInfo.Id is also its namespace: the owner part of every metadata key it writes and event it sends (id:name), and the name listed in AllowedResources.
Constructors
Section titled “Constructors”public ResourceInfo(string id, string name, string version, IReadOnlyList<string>? dependencies = null, IReadOnlySet<string>? permissions = null);Parameters
idstringnamestringversionstringdependenciesIReadOnlyList<string>?permissionsIReadOnlySet<string>?
Properties
Section titled “Properties”Dependencies
Section titled “Dependencies”public IReadOnlyList<string> Dependencies { get; }public string Id { get; }public string Name { get; }Permissions
Section titled “Permissions”public IReadOnlySet<string> Permissions { get; }Version
Section titled “Version”public string Version { get; }Methods
Section titled “Methods”Validate
Section titled “Validate”public static void Validate(ResourceInfo resource);Parameters
resourceResourceInfo
