Class ProjectExtensions
This holds all the project related extensions methods
Inheritance
System.Object
ProjectExtensions
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 ProjectExtensions
Methods
| Improve this Doc View SourceGetAllAsync(IProjectDomain, Nullable<Int32>, CancellationToken)
Get all visible projects See: https://docs.atlassian.com/jira/REST/latest/#d2e2779
Declaration
public static Task<IList<ProjectDigest>> GetAllAsync(this IProjectDomain jiraClient, int ? recent = null, CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
IProjectDomain | jiraClient | IProjectDomain to bind the extension method to |
System.Nullable<System.Int32> | recent | if this parameter is set then only projects recently accessed by the current user (if not logged in then based on HTTP session) will be returned (maximum count limited to the specified number but no more than 20). |
System.Threading.CancellationToken | cancellationToken | CancellationToken |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Collections.Generic.IList<ProjectDigest>> | list of ProjectDigest |
GetAsync(IProjectDomain, String, CancellationToken)
Get projects information See: https://docs.atlassian.com/jira/REST/latest/#d2e2779
Declaration
public static Task<Project> GetAsync(this IProjectDomain jiraClient, string projectKey, CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
IProjectDomain | jiraClient | IProjectDomain to bind the extension method to |
System.String | projectKey | key of the project |
System.Threading.CancellationToken | cancellationToken | CancellationToken |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<Project> | ProjectDetails |