Method SubmitAttachment
SubmitAttachment(AttachmentBinaryObjectType, ZedalCallContext)
Übergibt ein Binär-Attachment und liefert die vom Server vergebene Kennung zurück.
Achtung: Über diesen Weg kann eine temporäre Kennung der Form
ZEDAL_TMP_ATT_ID_<n>_<m> zurückkommen. Die trägt nur für einen Get über
denselben Weg — DIWASS kennt sie nicht und lehnt sie als
ATTACHMENT-NOT-FOUND ab. Eine zentrale DIWASS-Attachment-Id hat die Form
<Ziffern>ATT; prüfe die Form, bevor du die Kennung als
attachmentIdentifier an ein Dokument hängst.
Roh-Form, in der Aufrufer das Infotech.Zedal.Documents.V1.Diwass.Waste.Model.V1.AttachmentBinaryObjectType selbst
vorbefüllen — inklusive Magic-String-type_id. Für neuen Code den
Enum-Overload
SubmitAttachment(byte[], AttachmentTypeId, string, string, bool, ZedalCallContext)
bevorzugen.
Task<AttachmentSubmissionResponseType> SubmitAttachment(AttachmentBinaryObjectType attachment, ZedalCallContext context = default)
Parameters
attachmentAttachmentBinaryObjectTypeVollständig vorbefülltes Attachment-Objekt.
contextZedalCallContextOptionale Deadline-/Cancellation-Steuerung; ohne Angabe gilt der Client-Default.
Returns
- Task<AttachmentSubmissionResponseType>
SubmitAttachment(byte[], AttachmentTypeId, string, string, bool, ZedalCallContext)
Übergibt ein Binär-Attachment an DIWASS — Convenience-Form mit typsicherem
AttachmentTypeId. Setzt type_id, mime_code,
filename und contains_personal_data intern und ruft den
Submit-Endpoint auf.
Task<AttachmentSubmissionResponseType> SubmitAttachment(byte[] content, AttachmentTypeId typeId, string mimeCode, string filename, bool containsPersonalData = false, ZedalCallContext context = default)
Parameters
contentbyte[]Roh-Bytes der Datei.
typeIdAttachmentTypeIdDIWASS-Klassifikator des Attachments.
mimeCodestringMIME-Type (z.B.
application/pdf).filenamestringOriginaldateiname, wie er DIWASS übergeben wird.
containsPersonalDataboolFlag laut DIWASS-Spec — Default
false.contextZedalCallContextOptionale Deadline-/Cancellation-Steuerung; ohne Angabe gilt der Client-Default.
Returns
- Task<AttachmentSubmissionResponseType>