Class SessionExtensions
This holds all the user session extension methods
Inheritance
System.Object
SessionExtensions
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 SessionExtensions
Methods
| Improve this Doc View SourceEndAsync(ISessionDomain, CancellationToken)
Ends session. No additional authorization required.
Declaration
public static Task EndAsync(this ISessionDomain jiraClient, CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
ISessionDomain | jiraClient | ISessionDomain to bind the extension method to |
System.Threading.CancellationToken | cancellationToken | CancellationToken |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
StartAsync(ISessionDomain, String, String, CancellationToken)
Starts new session. No additional authorization requered.
Declaration
public static Task<LoginInfo> StartAsync(this ISessionDomain jiraClient, string username, string password, CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
ISessionDomain | jiraClient | ISessionDomain to bind the extension method to |
System.String | username | User username |
System.String | password | User password |
System.Threading.CancellationToken | cancellationToken | CancellationToken |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<LoginInfo> | LoginInfo |
Remarks
Please be aware that although cookie-based authentication has many benefits, such as performance (not having to make multiple authentication calls), the session cookie can expire..