.NET API
AttachmentContent
Namespace Tracon · Assembly
Tracon.Abstractions.dllThe content of a new attachment to be saved into the store.
public sealed class AttachmentContent- Inheritance
- object ← AttachmentContent
- Inherited Members
- object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Remarks
Section titled “Remarks”The content is carried already read into memory, because it stays under the size
limit (20 MB by default); the store layer does not deal with streaming. The type
itself is not a record: the AttachmentContent.Data field can be large, and the
generated ToString and equality comparison must not copy the whole content
by accident.
Constructors
Section titled “Constructors”AttachmentContent()
Section titled “ AttachmentContent()”public AttachmentContent()Properties
Section titled “Properties”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”Gets the raw content.
public required ReadOnlyMemory<byte> Data { 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”MediaType
Section titled “ MediaType”Gets the validated MIME type.
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 is bound to. null for an upload without a session.
public string? SessionId { get; init; }Property Value
Section titled “Property Value”TenantId
Section titled “ TenantId”Gets the tenant the attachment will belong to.
public required string TenantId { get; init; }