Class SettingsClient
Inheritance
Inherited Members
Namespace: Dangl.GiteaOrgManager.Client
Assembly: Dangl.GiteaOrgManager.dll
Syntax
public class SettingsClient
Constructors
| Improve this Doc View SourceSettingsClient(String, HttpClient)
Declaration
public SettingsClient(string baseUrl, HttpClient httpClient)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | baseUrl | |
| System.Net.Http.HttpClient | httpClient |
Properties
| Improve this Doc View SourceBaseUrl
Declaration
public string BaseUrl { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
JsonSerializerSettings
Declaration
protected Newtonsoft.Json.JsonSerializerSettings JsonSerializerSettings { get; }
Property Value
| Type | Description |
|---|---|
| Newtonsoft.Json.JsonSerializerSettings |
ReadResponseAsString
Declaration
public bool ReadResponseAsString { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Methods
| Improve this Doc View SourceGetGeneralAPISettingsAsync()
Get instance's global settings for api
Declaration
public virtual Task<GeneralAPISettings> GetGeneralAPISettingsAsync()
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GeneralAPISettings> | GeneralAPISettings |
Exceptions
| Type | Condition |
|---|---|
| ApiException | A server side error occurred. |
GetGeneralAPISettingsAsync(CancellationToken)
Get instance's global settings for api
Declaration
public virtual async Task<GeneralAPISettings> GetGeneralAPISettingsAsync(CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Threading.CancellationToken | cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GeneralAPISettings> | GeneralAPISettings |
Exceptions
| Type | Condition |
|---|---|
| ApiException | A server side error occurred. |
GetGeneralAttachmentSettingsAsync()
Get instance's global settings for Attachment
Declaration
public virtual Task<GeneralAttachmentSettings> GetGeneralAttachmentSettingsAsync()
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GeneralAttachmentSettings> | GeneralAttachmentSettings |
Exceptions
| Type | Condition |
|---|---|
| ApiException | A server side error occurred. |
GetGeneralAttachmentSettingsAsync(CancellationToken)
Get instance's global settings for Attachment
Declaration
public virtual async Task<GeneralAttachmentSettings> GetGeneralAttachmentSettingsAsync(CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Threading.CancellationToken | cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GeneralAttachmentSettings> | GeneralAttachmentSettings |
Exceptions
| Type | Condition |
|---|---|
| ApiException | A server side error occurred. |
GetGeneralRepositorySettingsAsync()
Get instance's global settings for repositories
Declaration
public virtual Task<GeneralRepoSettings> GetGeneralRepositorySettingsAsync()
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GeneralRepoSettings> | GeneralRepoSettings |
Exceptions
| Type | Condition |
|---|---|
| ApiException | A server side error occurred. |
GetGeneralRepositorySettingsAsync(CancellationToken)
Get instance's global settings for repositories
Declaration
public virtual async Task<GeneralRepoSettings> GetGeneralRepositorySettingsAsync(CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Threading.CancellationToken | cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GeneralRepoSettings> | GeneralRepoSettings |
Exceptions
| Type | Condition |
|---|---|
| ApiException | A server side error occurred. |
GetGeneralUISettingsAsync()
Get instance's global settings for ui
Declaration
public virtual Task<GeneralUISettings> GetGeneralUISettingsAsync()
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GeneralUISettings> | GeneralUISettings |
Exceptions
| Type | Condition |
|---|---|
| ApiException | A server side error occurred. |
GetGeneralUISettingsAsync(CancellationToken)
Get instance's global settings for ui
Declaration
public virtual async Task<GeneralUISettings> GetGeneralUISettingsAsync(CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Threading.CancellationToken | cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GeneralUISettings> | GeneralUISettings |
Exceptions
| Type | Condition |
|---|---|
| ApiException | A server side error occurred. |
ReadObjectResponseAsync<T>(HttpResponseMessage, IReadOnlyDictionary<String, IEnumerable<String>>, CancellationToken)
Declaration
protected virtual async Task<SettingsClient.ObjectResponseResult<T>> ReadObjectResponseAsync<T>(HttpResponseMessage response, IReadOnlyDictionary<string, IEnumerable<string>> headers, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Net.Http.HttpResponseMessage | response | |
| System.Collections.Generic.IReadOnlyDictionary<System.String, System.Collections.Generic.IEnumerable<System.String>> | headers | |
| System.Threading.CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<SettingsClient.ObjectResponseResult<T>> |
Type Parameters
| Name | Description |
|---|---|
| T |