Table of Contents

Class ApizrSettings

Namespace
Refitter.Core
Assembly
Refitter.Core.dll

Describing how Apizr should be configured. Here are only the common configurations.

public class ApizrSettings
Inheritance
ApizrSettings
Inherited Members

Properties

WithCacheProvider

Library to use for cache handling (default: None) Options:

  • None
  • Akavache
  • MonkeyCache
  • InMemory (Microsoft.Extensions.Caching.Memory)
  • Distributed (Microsoft.Extensions.Caching.Distributed)
[JsonConverter(typeof(JsonStringEnumConverter))]
public CacheProviderType WithCacheProvider { get; set; }

Property Value

CacheProviderType

WithFileTransfer

Set it to true to manage file transfers (default: false)

public bool WithFileTransfer { get; set; }

Property Value

bool

WithMappingProvider

Library to use for data mapping handling (default: None) Options:

  • None
  • AutoMapper
  • Mapster
[JsonConverter(typeof(JsonStringEnumConverter))]
public MappingProviderType WithMappingProvider { get; set; }

Property Value

MappingProviderType

WithMediation

Set it to true to handle request with MediatR (default: false)

public bool WithMediation { get; set; }

Property Value

bool

WithOptionalMediation

Set it to true to handle request with MediatR and Optional result (default: false)

public bool WithOptionalMediation { get; set; }

Property Value

bool

WithPriority

Set it to true to handle request with priority (default: false)

public bool WithPriority { get; set; }

Property Value

bool

WithRegistrationHelper

Set it to true to generate an Apizr registration helper ready to use (default: false). Please note that it will generate an extended or static helper depending on DependencyInjectionSettings property value.

public bool WithRegistrationHelper { get; set; }

Property Value

bool

WithRequestOptions

Set it to true to include an Apizr Request Options parameter into all api methods and get all the Apizr goodness (default: true)

public bool WithRequestOptions { get; set; }

Property Value

bool