Class ResourceTypeInstance
- Namespace
- FoundationaLLM.Common.Models.ResourceProviders
- Assembly
- FoundationaLLM.Common.dll
Identifies a specific resource type instance.
public record ResourceTypeInstance : IEquatable<ResourceTypeInstance>
- Inheritance
-
ResourceTypeInstance
- Implements
- Inherited Members
- Extension Methods
Constructors
ResourceTypeInstance(string, Type)
Identifies a specific resource type instance.
public ResourceTypeInstance(string ResourceTypeName, Type ResourceType)
Parameters
ResourceTypeName
stringThe name of the resource type.
ResourceType
TypeThe object type of the resource type.
Fields
Action
An optional action to be executed on the resource instance.
public string? Action
Field Value
ResourceId
An optional resource type instance unique identifier.
public string? ResourceId
Field Value
Properties
ResourceType
The object type of the resource type.
public Type ResourceType { get; init; }
Property Value
ResourceTypeName
The name of the resource type.
public string ResourceTypeName { get; init; }
Property Value
Methods
Includes(ResourceTypeInstance?)
Checks whether the current instance includes another ResourceTypeInstance instance.
public bool Includes(ResourceTypeInstance? other)
Parameters
other
ResourceTypeInstanceThe ResourceTypeInstance to check for inclusion.
Returns
- bool
True if the current instance includes the other instance.