Class AttachmentHelper
Utility class for attachments helper methods.
Inheritance
AttachmentHelper
Assembly: SoDataBase.BusinessLogic.dll
Syntax
public static class AttachmentHelper
Methods
AddAttachmentsToMessage2Async(int, int[], CancellationToken)
TicketAgentImplementation::AddAttachments
Declaration
public static Task AddAttachmentsToMessage2Async(int ejMessageId, int[] attachmentIds, CancellationToken cancellationToken = default)
Parameters
Returns
Exceptions
AddAttachmentsToMessageAsync(int, int[], CancellationToken)
Declaration
public static Task AddAttachmentsToMessageAsync(int ejMessageId, int[] attachmentIds, CancellationToken cancellationToken = default)
Parameters
Returns
DeleteAttachmentAsync(int, CancellationToken)
Deletes attachment from attachment table and from disk. It will NOT delete the link between the attachment and ticket, kb entry etc.
Declaration
public static Task DeleteAttachmentAsync(int attachmentId, CancellationToken cancellationToken = default)
Parameters
| Type |
Name |
Description |
| int |
attachmentId |
Id of attachment to delete
|
| CancellationToken |
cancellationToken |
|
Returns
GetAttachmentCountAsync(int, CancellationToken)
Declaration
public static Task<int> GetAttachmentCountAsync(int ticketId, CancellationToken cancellationToken)
Parameters
Returns
GetDefaultAttachmentLocationId()
Declaration
public static int GetDefaultAttachmentLocationId()
Returns
HasAttachmentAccessAsync(int, EFieldRight, CancellationToken)
Declaration
public static Task<bool> HasAttachmentAccessAsync(int attachmentId, EFieldRight requiredRight, CancellationToken cancellationToken = default)
Parameters
Returns
UpdateTicketHasAttachmentAsync(int, bool, CancellationToken)
Declaration
public static Task UpdateTicketHasAttachmentAsync(int ticketId, bool value, CancellationToken cancellationToken = default)
Parameters
Returns