Class ApizrManagerOptions<TWebApi>
- Namespace
- Apizr.Configuring.Manager
- Assembly
- Apizr.dll
Options available for static registrations
public class ApizrManagerOptions<TWebApi> : IApizrManagerOptions<TWebApi>, IApizrManagerOptionsBase, IApizrCommonOptionsBase, IApizrProperOptionsBase, IApizrSharedRegistrationOptionsBase, IApizrGlobalSharedRegistrationOptionsBase, IApizrGlobalSharedOptionsBase
Type Parameters
TWebApi
- Inheritance
-
ApizrManagerOptions<TWebApi>
- Implements
-
IApizrManagerOptions<TWebApi>
- Derived
- Inherited Members
Constructors
ApizrManagerOptions(IApizrManagerOptionsBase)
The options constructor
public ApizrManagerOptions(IApizrManagerOptionsBase apizrOptions)
Parameters
apizrOptions
IApizrManagerOptionsBaseThe base options
Fields
Options
The options
protected readonly IApizrManagerOptionsBase Options
Field Value
Properties
ApizrConfigurationSection
Configuration section for Apizr
public IConfigurationSection ApizrConfigurationSection { get; }
Property Value
BaseAddress
Base address
public string BaseAddress { get; }
Property Value
BasePath
Base path
public string BasePath { get; }
Property Value
BaseUri
Base address
public Uri BaseUri { get; }
Property Value
CacheOptions
The caching options to apply
public IDictionary<ApizrConfigurationSource, CacheAttributeBase> CacheOptions { get; }
Property Value
CrudApiEntityType
Crud api entity type if any
public Type CrudApiEntityType { get; }
Property Value
ExceptionHandlers
Catching potential exception if defined
public IList<IApizrExceptionHandler> ExceptionHandlers { get; }
Property Value
HandlersParameters
Parameters passed through delegating handlers
public IDictionary<string, object> HandlersParameters { get; }
Property Value
Headers
Headers to add to the request
public IDictionary<ApizrRegistrationMode, IList<string>> Headers { get; }
Property Value
HeadersFactories
Headers factories
public IDictionary<(ApizrRegistrationMode Mode, ApizrLifetimeScope Scope), Func<IList<string>>> HeadersFactories { get; }
Property Value
HttpTracerMode
Http traffic tracing mode
public HttpTracerMode HttpTracerMode { get; }
Property Value
IsCrudApi
True if it's a CRUD api
public bool IsCrudApi { get; }
Property Value
LetThrowOnHandledException
Let throw potential exception even if it's handled (default: true)
public bool LetThrowOnHandledException { get; }
Property Value
LogLevels
Log levels while writing
public LogLevel[] LogLevels { get; }
Property Value
- LogLevel[]
Logger
The logger instance
public ILogger Logger { get; }
Property Value
OperationTimeout
The operation timeout (overall request tries)
public TimeSpan? OperationTimeout { get; }
Property Value
PrimaryHandlerFactory
The primary Http message handler factory (set internally)
public Func<DelegatingHandler, ILogger, IApizrManagerOptionsBase, HttpMessageHandler> PrimaryHandlerFactory { get; }
Property Value
RefitSettings
Refit settings
public RefitSettings RefitSettings { get; }
Property Value
- RefitSettings
RequestNames
Web api request names
public IReadOnlyList<string> RequestNames { get; }
Property Value
RequestOptionsBuilders
The request options builders
public IDictionary<string, Action<IApizrRequestOptionsBuilder>> RequestOptionsBuilders { get; }
Property Value
RequestTimeout
The request timeout (each request try)
public TimeSpan? RequestTimeout { get; }
Property Value
ResiliencePipelineOptions
Resilience pipeline keys from the registry
public IDictionary<ApizrConfigurationSource, ResiliencePipelineAttributeBase[]> ResiliencePipelineOptions { get; }
Property Value
ShouldRedactHeaderValue
The Func<T, TResult> which determines whether to redact the HTTP header value before logging.
public Func<string, bool> ShouldRedactHeaderValue { get; }
Property Value
TrafficVerbosity
Http traffic tracing verbosity
public HttpMessageParts TrafficVerbosity { get; }
Property Value
TypeInfo
Web api interface or Crud api entity class type info
public TypeInfo TypeInfo { get; }
Property Value
WebApiType
Web api interface type
public Type WebApiType { get; }