< Summary

Information
Class: Elsa.Api.Client.Options.ElsaClientOptions
Assembly: Elsa.Api.Client
File(s): /home/runner/work/elsa-core/elsa-core/src/clients/Elsa.Api.Client/Options/ElsaClientOptions.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 3
Coverable lines: 3
Total lines: 22
Line coverage: 0%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_BaseAddress()100%210%
get_ApiKey()100%210%
get_ConfigureHttpClient()100%210%

File(s)

/home/runner/work/elsa-core/elsa-core/src/clients/Elsa.Api.Client/Options/ElsaClientOptions.cs

#LineLine coverage
 1namespace Elsa.Api.Client.Options;
 2
 3/// <summary>
 4/// Represents options for the Elsa client.
 5/// </summary>
 6public class ElsaClientOptions
 7{
 8    /// <summary>
 9    /// Gets or sets the base address of the Elsa server.
 10    /// </summary>
 011    public Uri BaseAddress { get; set; } = default!;
 12
 13    /// <summary>
 14    /// Gets or sets the API key function to use when authenticating with the Elsa server.
 15    /// </summary>
 016    public string? ApiKey { get; set; }
 17
 18    /// <summary>
 19    /// Gets or sets a delegate that can be used to configure the HTTP client.
 20    /// </summary>
 021    public Action<IServiceProvider, HttpClient>? ConfigureHttpClient { get; set; }
 22}