Class MiscExtensions
All extensions which have no direct clear domain
Inheritance
System.Object
MiscExtensions
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.Confluence
Assembly: Dapplo.Confluence.dll
Syntax
public static class MiscExtensions
Methods
| Improve this Doc View SourceGetPictureAsync<TResponse>(IMiscDomain, Picture, CancellationToken)
Retrieve the picture for the supplied Picture entity
Declaration
public static async Task<TResponse> GetPictureAsync<TResponse>(this IMiscDomain confluenceClient, Picture picture, CancellationToken cancellationToken = null)
where TResponse : class
Parameters
Type | Name | Description |
---|---|---|
IMiscDomain | confluenceClient | IMiscDomain to bind the extension method to |
Picture | picture | Picture from User, Space, History etc |
CancellationToken | cancellationToken | CancellationToken |
Returns
Type | Description |
---|---|
Task<TResponse> | Bitmap,BitmapSource or MemoryStream (etc) depending on TResponse |
Type Parameters
Name | Description |
---|---|
TResponse | the type to return the result into. e.g. Bitmap,BitmapSource or MemoryStream |
GetSystemInfoAsync(IMiscDomain, CancellationToken)
Returns the system information for the Confluence Cloud tenant. This only works on the cloud version of Confluence.
Declaration
public static async Task<SystemInfoEntity> GetSystemInfoAsync(this IMiscDomain confluenceClient, CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
IMiscDomain | confluenceClient | IMiscDomain |
CancellationToken | cancellationToken | CancellationToken |
Returns
Type | Description |
---|---|
Task<SystemInfoEntity> | SystemInfoEntity |