Skip to content
This repository has been archived by the owner on Feb 14, 2022. It is now read-only.

Defaults

Jacopo edited this page Mar 7, 2021 · 3 revisions

Tutorial

Table of Contents

Settings v3

⚠️ V3 is going to be deprecated soon.

Standard

method option type value
RegisterEntryAssembly register bool true
RegisterWrapperAsService register bool true
InjectionVersioningMethod targetMethod ServedVersion TargetingMethod None
@override bool false
InjectionServingMethod methods ServingMethods (Fields|Properties|Strict)
@override bool false
TrackInstantiationDiff track bool false
callDispose bool false
WhenNoMoreTasks waitingMethod AsyncWaitingMethod Exit
waitTime int 1000
ServeIEnumerables serve bool true

Subtraction

used when you want to use [Ignored] rather than [Served] on properties everywhere.

Modification from the Standard settings:

method option type value
InjectionServingMethod methods ServingMethods (Fields|Properties)
@override bool true

Settings v4

settings in v4 differ from v3 in that they are modular.

  • Default
    option value
    MaskOptions Disabled
    InjectionOptions Default
    RuntimeOptions Default
  • BySubtraction
    option value
    MaskOptions Disabled
    InjectionOptions Default
    .ServingMethods(DefaultConstants.ServeAll, true)
    RuntimeOptions Default

Mask

public sealed class Mask : HashSet<Type>, IOption
  • WhiteList
  • BlackList
  • Disabled

Runtime

public sealed class Runtime : IOption
  • Default
    method option type value
    WhenNoMoreTasks waitingMethod AsyncWaitingMethod Exit
    waitTime int 500

Injection

public sealed class Injection : 
  • Default
    method value
    VersioningMethod(ServedVersionTargetingMethod, bool) None, false
    ServingMethod(ServingMethods,bool) Properties|Fields|Strict,false
    RemoveUnusedTypesAfterInjection(bool) false
    LimitInstancesCount(uint) 128
    ServeIEnumerables(bool) true
    TrackInstantiationDiff(bool,bool) false,false

Attributes

Service

property type value
Version double -0.0
Pattern InstantiationPattern Singleton
Serving ServingMethod unset

Served

property type value
TargetVersion double 0.0
TargetingMethod ServedVersionTargetingMethod unset