Class IdentityClient
Inheritance
IdentityClient
Assembly: Noxum.Nova.Cms.Client.dll
Syntax
public class IdentityClient : IIdentityClient
Constructors
IdentityClient(string, HttpClient)
Declaration
public IdentityClient(string baseUrl, HttpClient httpClient)
Parameters
Properties
BaseUrl
Declaration
public string BaseUrl { get; set; }
Property Value
JsonSerializerSettings
Declaration
protected JsonSerializerOptions JsonSerializerSettings { get; }
Property Value
ReadResponseAsString
Declaration
public bool ReadResponseAsString { get; set; }
Property Value
Methods
GetUserDisplayNameAsync(string, CancellationToken)
Gets a user's display name.
Declaration
public virtual Task<CmsObject> GetUserDisplayNameAsync(string name, CancellationToken cancellationToken = default)
Parameters
| Type |
Name |
Description |
| string |
name |
The user's name.
|
| CancellationToken |
cancellationToken |
A cancellation token that can be used by other objects or threads to receive notice of cancellation.
|
Returns
Exceptions
ReadObjectResponseAsync<T>(HttpResponseMessage, IReadOnlyDictionary<string, IEnumerable<string>>, CancellationToken)
Declaration
protected virtual Task<IdentityClient.ObjectResponseResult<T>> ReadObjectResponseAsync<T>(HttpResponseMessage response, IReadOnlyDictionary<string, IEnumerable<string>> headers, CancellationToken cancellationToken)
Parameters
Returns
Type Parameters
Implements