• Articles
  • Api Documentation
Show / Hide Table of Contents
  • Dapplo.Jira
    • AgileExtensions
    • AttachmentExtensions
    • FilterExtensions
    • IJiraClient
    • IssueExtensions
    • JiraClient
    • JiraConfig
    • JiraException
    • ProjectExtensions
    • ServerExtensions
    • SessionExtensions
    • TimeSpanExtensions
    • UserExtensions
    • WorkExtensions
  • Dapplo.Jira.Domains
    • IAgileDomain
    • IAttachmentDomain
    • IFilterDomain
    • IIssueDomain
    • IJiraDomain
    • IProjectDomain
    • IServerDomain
    • ISessionDomain
    • IUserDomain
    • IWorkDomain
  • Dapplo.Jira.Entities
    • AgileIssue
    • AgileIssueFields
    • AllowedValue
    • Attachment
    • AttachmentContainer<T>
    • AvatarUrls
    • BaseId<TId>
    • BaseProperties<TId>
    • Board
    • BoardConfiguration
    • Column
    • ColumnConfig
    • Comment
    • Comments
    • Component
    • ComponentDigest
    • Configuration
    • Epic
    • EpicColor
    • Error
    • EstimationCustomFieldInfo
    • EstimationFieldInfo
    • Field
    • Filter
    • Issue
    • IssueBase
    • IssueFields
    • IssueType
    • IssueWithFields<TFields>
    • LoginInfo
    • Pageable
    • PageableResult
    • PossibleField
    • Priority
    • ProgressInfo
    • Project
    • ProjectCategory
    • ProjectDigest
    • RankingCustomFieldInfo
    • Resolution
    • Results<TResultType>
    • Schema
    • Search
    • SearchResult<TIssue>
    • ServerInfo
    • SharePermission
    • Sprint
    • Status
    • StatusCategory
    • Subscription
    • Subscriptions
    • TimeTracking
    • TimeTrackingConfiguration
    • Transition
    • Transitions
    • User
    • Version
    • Visibility
    • VoteInfo
    • Watches
    • Worklog
    • Worklogs
  • Dapplo.Jira.Enums
    • AdjustEstimate
    • AvatarSizes
    • BoardTypes
  • Dapplo.Jira.Json
    • CustomDateTimeOffsetConverter
  • Dapplo.Jira.Query
    • DatetimeClause
    • Fields
    • IDatetimeClause
    • IDatetimeClauseWithoutValue
    • IFinalClause
    • IIssueClause
    • IProjectClause
    • ISimpleValueClause
    • IssueClause
    • ITextClause
    • ITypeClause
    • IUserClause
    • IVersionClause
    • Operators
    • ProjectClause
    • SimpleValueClause
    • TextClause
    • TypeClause
    • UserClause
    • VersionClause
    • Where

Class AttachmentExtensions

This holds all the attachment related extension methods

Inheritance
System.Object
AttachmentExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace:Dapplo.Jira
Assembly:Dapplo.Jira.dll
Syntax
public static class AttachmentExtensions

Methods

| Improve this Doc View Source

AttachAsync<TContent>(IAttachmentDomain, String, TContent, String, String, CancellationToken)

Attach content to the specified issue See: https://docs.atlassian.com/jira/REST/latest/#d2e3035

Declaration
public static Task<Attachment> AttachAsync<TContent>(this IAttachmentDomain jiraClient, string issueKey, TContent content, string filename, string contentType = null, CancellationToken cancellationToken = null)where TContent : class
Parameters
Type Name Description
IAttachmentDomain jiraClient

IAttachmentDomain to bind the extension method to

System.String issueKey

the key of the issue to attach to

TContent content

the content can be anything what Dapplo.HttpExtensions supports

System.String filename

Filename for the attachment

System.String contentType

content-type for the attachment

System.Threading.CancellationToken cancellationToken

CancellationToken

Returns
Type Description
System.Threading.Tasks.Task<Attachment>

Attachment

Type Parameters
Name Description
TContent
| Improve this Doc View Source

DeleteAsync(IAttachmentDomain, Attachment, CancellationToken)

Delete the specified attachment

Declaration
public static Task DeleteAsync(this IAttachmentDomain jiraClient, Attachment attachment, CancellationToken cancellationToken = null)
Parameters
Type Name Description
IAttachmentDomain jiraClient

IAttachmentDomain to bind the extension method to

Attachment attachment

The Attachment to delete

System.Threading.CancellationToken cancellationToken

CancellationToken

Returns
Type Description
System.Threading.Tasks.Task
| Improve this Doc View Source

DeleteAsync(IAttachmentDomain, Int64, CancellationToken)

Delete the specified attachment

Declaration
public static Task DeleteAsync(this IAttachmentDomain jiraClient, long attachmentId, CancellationToken cancellationToken = null)
Parameters
Type Name Description
IAttachmentDomain jiraClient

IAttachmentDomain to bind the extension method to

System.Int64 attachmentId

Id from the attachment

System.Threading.CancellationToken cancellationToken

CancellationToken

Returns
Type Description
System.Threading.Tasks.Task
| Improve this Doc View Source

GetContentAsAsync<TResponse>(IAttachmentDomain, Attachment, CancellationToken)

Get the content for the specified attachment

Declaration
public static Task<TResponse> GetContentAsAsync<TResponse>(this IAttachmentDomain jiraClient, Attachment attachment, CancellationToken cancellationToken = null)where TResponse : class
Parameters
Type Name Description
IAttachmentDomain jiraClient

IAttachmentDomain to bind the extension method to

Attachment attachment

the attachment

System.Threading.CancellationToken cancellationToken

CancellationToken

Returns
Type Description
System.Threading.Tasks.Task<TResponse>

TResponse

Type Parameters
Name Description
TResponse

the type which is returned, can be decided by the client and should be supported by Dapplo.HttpExtensions or your own IHttpContentConverter

| Improve this Doc View Source

GetThumbnailAsAsync<TResponse>(IAttachmentDomain, Attachment, CancellationToken)

Get the thumbnail for the specified attachment

Declaration
public static Task<TResponse> GetThumbnailAsAsync<TResponse>(this IAttachmentDomain jiraClient, Attachment attachment, CancellationToken cancellationToken = null)where TResponse : class
Parameters
Type Name Description
IAttachmentDomain jiraClient

IAttachmentDomain to bind the extension method to

Attachment attachment

the attachment

System.Threading.CancellationToken cancellationToken

CancellationToken

Returns
Type Description
System.Threading.Tasks.Task<TResponse>

TResponse

Type Parameters
Name Description
TResponse

the type which is returned, can be decided by the client and should be supported by Dapplo.HttpExtensions or your own IHttpContentConverter

  • Improve this Doc
  • View Source
Back to top Copyright © 2017 Dapplo