Class ResourceReference
- Namespace
- FoundationaLLM.Common.Models.ResourceProviders
- Assembly
- FoundationaLLM.Common.dll
Resource reference used by resource providers to index the resources they manage.
public class ResourceReference
- Inheritance
-
ResourceReference
- Derived
- Inherited Members
- Extension Methods
Properties
Deleted
Indicates whether the resource has been logically deleted.
public bool Deleted { get; set; }
Property Value
Filename
The filename of the resource.
public required string Filename { get; set; }
Property Value
Name
The name of the resource.
public required string Name { get; set; }
Property Value
ObjectId
The unique identifier of the resource.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? ObjectId { get; set; }
Property Value
ResourceType
The object type of the resource.
[JsonIgnore]
public virtual Type ResourceType { get; }
Property Value
Remarks
Derived classes should override this property to provide the type of the resource reference.
Type
The type of the resource.
public required string Type { get; set; }
Property Value
Methods
Equals(object?)
Determines whether the specified object is equal to the current ResourceReference.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current ResourceReference.
Returns
- bool
true if the specified object is equal to the current ResourceReference; otherwise, false.
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current ResourceReference.
Operators
operator ==(ResourceReference, ResourceReference)
Determines whether two specified instances of ResourceReference are equal.
public static bool operator ==(ResourceReference left, ResourceReference right)
Parameters
leftResourceReferenceThe first ResourceReference to compare.
rightResourceReferenceThe second ResourceReference to compare.
Returns
- bool
true if the two ResourceReference instances are equal; otherwise, false.
operator !=(ResourceReference, ResourceReference)
Determines whether two specified instances of ResourceReference are not equal.
public static bool operator !=(ResourceReference left, ResourceReference right)
Parameters
leftResourceReferenceThe first ResourceReference to compare.
rightResourceReferenceThe second ResourceReference to compare.
Returns
- bool
true if the two ResourceReference instances are not equal; otherwise, false.