Table of Contents

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 string

The name of the resource type.

ResourceType Type

The object type of the resource type.

Fields

Action

An optional action to be executed on the resource instance.

public string? Action

Field Value

string

ResourceId

An optional resource type instance unique identifier.

public string? ResourceId

Field Value

string

Properties

ResourceType

The object type of the resource type.

public Type ResourceType { get; init; }

Property Value

Type

ResourceTypeName

The name of the resource type.

public string ResourceTypeName { get; init; }

Property Value

string

Methods

Includes(ResourceTypeInstance?)

Checks whether the current instance includes another ResourceTypeInstance instance.

public bool Includes(ResourceTypeInstance? other)

Parameters

other ResourceTypeInstance

The ResourceTypeInstance to check for inclusion.

Returns

bool

True if the current instance includes the other instance.