using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; using System; using System.Net.Http; namespace ReC.Client { /// /// Configuration object for . /// Groups all optional settings for the static bootstrap path. /// /// /// Either or must be set; setting both at the same time is not allowed. /// public class StaticBuildConfiguration { /// /// Base URI of the ReC API. Mutually exclusive with . /// #if NETFRAMEWORK public string BaseAddress { get; set; } #else public string? BaseAddress { get; set; } #endif /// /// Callback that configures the underlying . Mutually exclusive with . /// #if NETFRAMEWORK public Action ConfigureClient { get; set; } #else public Action? ConfigureClient { get; set; } #endif /// /// Optional callback to configure . /// #if NETFRAMEWORK public Action ConfigureOptions { get; set; } #else public Action? ConfigureOptions { get; set; } #endif /// /// Optional logger instance to be registered as a singleton in the internal service collection. /// #if NETFRAMEWORK public ILogger Logger { get; set; } #else public ILogger? Logger { get; set; } #endif /// /// Optional callback for additional service registrations on the internal /// (e.g. services.AddLogging(...) or custom dependencies). /// #if NETFRAMEWORK public Action ConfigureServices { get; set; } #else public Action? ConfigureServices { get; set; } #endif } }