.NET API
AttachmentDescriptor
Tracon.Abstractions.dllThe metadata of an uploaded attachment.
public sealed record AttachmentDescriptor : IEquatable<AttachmentDescriptor>- Inheritance
- object ← AttachmentDescriptor
- Implements
- IEquatable<AttachmentDescriptor>
- Inherited Members
- object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Remarks
Section titled “Remarks”The binary content is not CARRIED here. It is read separately with IAttachmentStore.OpenReadAsync.
Constructors
Section titled “Constructors”AttachmentDescriptor()
Section titled “ AttachmentDescriptor()”public AttachmentDescriptor()Properties
Section titled “Properties”ByteSize
Section titled “ ByteSize”Gets the size of the content in bytes.
public required long ByteSize { get; init; }Property Value
Section titled “Property Value”CreatedAt
Section titled “ CreatedAt”Gets the upload time.
public required DateTimeOffset CreatedAt { get; init; }Property Value
Section titled “Property Value”CreatedBy
Section titled “ CreatedBy”Gets the actor that uploaded it, or null when it is unknown.
public string? CreatedBy { get; init; }Property Value
Section titled “Property Value”FileName
Section titled “ FileName”Gets the original file name.
public required string FileName { get; init; }Property Value
Section titled “Property Value”Gets the attachment id.
public required Guid Id { get; init; }Property Value
Section titled “Property Value”MediaType
Section titled “ MediaType”Gets the validated MIME type. It is the result of the magic-byte check, not the
Content-Type the client sent.
public required string MediaType { get; init; }Property Value
Section titled “Property Value”Gets the run that produced the attachment. null for a user upload.
public Guid? RunId { get; init; }Property Value
Section titled “Property Value”Guid?
SessionId
Section titled “ SessionId”Gets the session the attachment was uploaded to. null for an upload without a session.
public string? SessionId { get; init; }Property Value
Section titled “Property Value”Sha256
Section titled “ Sha256”Gets the SHA-256 digest of the content (hexadecimal, upper case).
public required string Sha256 { get; init; }Property Value
Section titled “Property Value”TenantId
Section titled “ TenantId”Gets the tenant the attachment belongs to.
public required string TenantId { get; init; }Property Value
Section titled “Property Value”Methods
Section titled “Methods”Equals(object?)
Section titled “ Equals(object?)”public override bool Equals(object? obj)Parameters
Section titled “Parameters”obj object?
Returns
Section titled “Returns”Equals(AttachmentDescriptor?)
Section titled “ Equals(AttachmentDescriptor?)”public bool Equals(AttachmentDescriptor? other)Parameters
Section titled “Parameters”other AttachmentDescriptor?
Returns
Section titled “Returns”GetHashCode()
Section titled “ GetHashCode()”public override int GetHashCode()Returns
Section titled “Returns”ToString()
Section titled “ ToString()”public override string ToString()Returns
Section titled “Returns”Operators
Section titled “Operators”operator ==(AttachmentDescriptor?, AttachmentDescriptor?)
Section titled “ operator ==(AttachmentDescriptor?, AttachmentDescriptor?)”public static bool operator ==(AttachmentDescriptor? left, AttachmentDescriptor? right)Parameters
Section titled “Parameters”left AttachmentDescriptor?
right AttachmentDescriptor?
Returns
Section titled “Returns”operator !=(AttachmentDescriptor?, AttachmentDescriptor?)
Section titled “ operator !=(AttachmentDescriptor?, AttachmentDescriptor?)”public static bool operator !=(AttachmentDescriptor? left, AttachmentDescriptor? right)Parameters
Section titled “Parameters”left AttachmentDescriptor?
right AttachmentDescriptor?