Table of Contents

Class ApizrProperOptions

Namespace
Apizr.Configuring.Proper
Assembly
Apizr.dll

Options available at proper level for static registrations

public class ApizrProperOptions : ApizrProperOptionsBase, IApizrProperOptions, IApizrProperOptionsBase, IApizrSharedRegistrationOptions, IApizrSharedRegistrationOptionsBase, IApizrGlobalSharedRegistrationOptionsBase, IApizrGlobalSharedOptions, IApizrGlobalSharedOptionsBase
Inheritance
ApizrProperOptions
Implements
Inherited Members

Constructors

ApizrProperOptions(IApizrSharedRegistrationOptions, Type, Type, TypeInfo, string, string, IDictionary<string, object>, HttpTracerMode?, HttpMessageParts?, TimeSpan?, TimeSpan?, ResiliencePipelineAttributeBase[], ResiliencePipelineAttributeBase[], CacheAttribute, CacheAttribute, Func<string, bool>, params LogLevel[])

The proper options constructor

public ApizrProperOptions(IApizrSharedRegistrationOptions sharedOptions, Type webApiType, Type crudApiEntityType, TypeInfo typeInfo, string baseAddress, string basePath, IDictionary<string, object> handlersParameters, HttpTracerMode? httpTracerMode, HttpMessageParts? trafficVerbosity, TimeSpan? operationTimeout, TimeSpan? requestTimeout, ResiliencePipelineAttributeBase[] commonResiliencePipelineAttributes, ResiliencePipelineAttributeBase[] properResiliencePipelineAttributes, CacheAttribute commonCacheAttribute, CacheAttribute properCacheAttribute, Func<string, bool> shouldRedactHeaderValue = null, params LogLevel[] logLevels)

Parameters

sharedOptions IApizrSharedRegistrationOptions

The shared options

webApiType Type

The web api type

crudApiEntityType Type

The crud api entity type if any

typeInfo TypeInfo

The type info

baseAddress string

The web api base address

basePath string

The web api base path

handlersParameters IDictionary<string, object>

Some handlers parameters

httpTracerMode HttpTracerMode?

The http tracer mode

trafficVerbosity HttpMessageParts?

The traffic verbosity

operationTimeout TimeSpan?

The operation timeout

requestTimeout TimeSpan?

The request timeout

commonResiliencePipelineAttributes ResiliencePipelineAttributeBase[]

Global resilience pipelines

properResiliencePipelineAttributes ResiliencePipelineAttributeBase[]

Specific resilience pipeline

commonCacheAttribute CacheAttribute

Global caching options

properCacheAttribute CacheAttribute

Specific caching options

shouldRedactHeaderValue Func<string, bool>

Headers to redact value

logLevels LogLevel[]

The log levels

Properties

BaseAddressFactory

Base address factory

public Func<string> BaseAddressFactory { get; set; }

Property Value

Func<string>

BasePathFactory

Base path factory

public Func<string> BasePathFactory { get; set; }

Property Value

Func<string>

BaseUriFactory

Base uri factory

public Func<Uri> BaseUriFactory { get; set; }

Property Value

Func<Uri>

DelegatingHandlersFactories

DelegatingHandler factories

public IDictionary<Type, Func<IApizrManagerOptionsBase, DelegatingHandler>> DelegatingHandlersFactories { get; }

Property Value

IDictionary<Type, Func<IApizrManagerOptionsBase, DelegatingHandler>>

ExceptionHandlersFactory

Exception handlers factory

public Func<IList<IApizrExceptionHandler>> ExceptionHandlersFactory { get; set; }

Property Value

Func<IList<IApizrExceptionHandler>>

HttpClientConfigurationBuilder

HttpClient configuration builder

public Action<HttpClient> HttpClientConfigurationBuilder { get; set; }

Property Value

Action<HttpClient>

HttpClientHandlerFactory

HttpClientHandler factory

public Func<HttpClientHandler> HttpClientHandlerFactory { get; set; }

Property Value

Func<HttpClientHandler>

HttpMessageHandlerFactory

HttpMessageHandler factory

public Func<IApizrManagerOptionsBase, HttpMessageHandler> HttpMessageHandlerFactory { get; set; }

Property Value

Func<IApizrManagerOptionsBase, HttpMessageHandler>

HttpTracerModeFactory

Http traffic tracing mode factory

public Func<HttpTracerMode> HttpTracerModeFactory { get; set; }

Property Value

Func<HttpTracerMode>

LogLevelsFactory

Log levels factory

public Func<LogLevel[]> LogLevelsFactory { get; set; }

Property Value

Func<LogLevel[]>

LoggerFactory

The Logger factory

public Func<ILoggerFactory, string, ILogger> LoggerFactory { get; }

Property Value

Func<ILoggerFactory, string, ILogger>

OperationTimeoutFactory

The operation timeout factory (overall request tries)

public Func<TimeSpan> OperationTimeoutFactory { get; set; }

Property Value

Func<TimeSpan>

RequestTimeoutFactory

The request timeout factory (each request try)

public Func<TimeSpan> RequestTimeoutFactory { get; set; }

Property Value

Func<TimeSpan>

TrafficVerbosityFactory

Http traffic tracing verbosity factory

public Func<HttpMessageParts> TrafficVerbosityFactory { get; set; }

Property Value

Func<HttpMessageParts>