Table of Contents

Class ApizrExtendedProperOptions

Namespace
Apizr.Extending.Configuring.Proper
Assembly
Apizr.Extensions.Microsoft.DependencyInjection.dll

Options available at proper level for extended registrations

public class ApizrExtendedProperOptions : ApizrProperOptionsBase, IApizrExtendedProperOptions, IApizrExtendedProperOptionsBase, IApizrProperOptionsBase, IApizrSharedRegistrationOptionsBase, IApizrExtendedSharedOptions, IApizrExtendedSharedOptionsBase, IApizrGlobalSharedRegistrationOptionsBase, IApizrGlobalSharedOptionsBase
Inheritance
ApizrExtendedProperOptions
Implements
Inherited Members

Constructors

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

The proper options constructor

public ApizrExtendedProperOptions(IApizrExtendedSharedOptions sharedOptions, Type webApiType, Type crudApiEntityType, Type crudApiEntityKeyType, Type crudApiReadAllResultType, Type crudApiReadAllParamsType, TypeInfo typeInfo, Type apizrManagerType, 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 IApizrExtendedSharedOptions

The shared options

webApiType Type

The web api type

crudApiEntityType Type

The crud api entity type if any

crudApiEntityKeyType Type

The crud api entity key type if any

crudApiReadAllResultType Type

The crud api read all result type if any

crudApiReadAllParamsType Type

The crud api read all params type if any

typeInfo TypeInfo

The type info

apizrManagerType Type

The manager type

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

ApizrManagerImplementationType

Type of the implemented manager

public Type ApizrManagerImplementationType { get; }

Property Value

Type

BaseAddressFactory

Base address factory

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

Property Value

Func<IServiceProvider, string>

BasePathFactory

Base path factory

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

Property Value

Func<IServiceProvider, string>

BaseUriFactory

Base Uri factory

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

Property Value

Func<IServiceProvider, Uri>

CrudApiEntityKeyType

Type of the crud api entity key if any

public Type CrudApiEntityKeyType { get; }

Property Value

Type

CrudApiReadAllParamsType

Type of the crud api read all parameters if any

public Type CrudApiReadAllParamsType { get; }

Property Value

Type

CrudApiReadAllResultType

Type of the crud api read all result if any

public Type CrudApiReadAllResultType { get; }

Property Value

Type

DelegatingHandlersExtendedFactories

Delegating handlers factories

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

Property Value

IDictionary<Type, Func<IServiceProvider, IApizrManagerOptionsBase, DelegatingHandler>>

ExceptionHandlersFactory

Exception handlers factory

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

Property Value

Func<IServiceProvider, IList<IApizrExceptionHandler>>

HeadersExtendedFactories

Headers factories

public IDictionary<(ApizrRegistrationMode, ApizrLifetimeScope), Func<IServiceProvider, Func<IList<string>>>> HeadersExtendedFactories { get; }

Property Value

IDictionary<(ApizrRegistrationMode, ApizrLifetimeScope), Func<IServiceProvider, Func<IList<string>>>>

HttpClientBuilder

HttpClient builder

public Action<IHttpClientBuilder> HttpClientBuilder { get; set; }

Property Value

Action<IHttpClientBuilder>

HttpClientHandlerFactory

HttpClientHandler factory

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

Property Value

Func<IServiceProvider, HttpClientHandler>

HttpMessageHandlerFactory

HttpMessageHandler factory

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

Property Value

Func<IServiceProvider, IApizrManagerOptionsBase, HttpMessageHandler>

HttpTracerModeFactory

Http traffic tracing mode factory

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

Property Value

Func<IServiceProvider, HttpTracerMode>

LogLevelsFactory

Log levels factory

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

Property Value

Func<IServiceProvider, LogLevel[]>

LoggerFactory

The Logger factory

public Func<IServiceProvider, string, ILogger> LoggerFactory { get; protected set; }

Property Value

Func<IServiceProvider, string, ILogger>

OperationTimeoutFactory

The operation timeout factory (overall request tries)

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

Property Value

Func<IServiceProvider, TimeSpan>

RequestTimeoutFactory

The request timeout factory (each request try)

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

Property Value

Func<IServiceProvider, TimeSpan>

TrafficVerbosityFactory

Http traffic tracing verbosity factory

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

Property Value

Func<IServiceProvider, HttpMessageParts>