Show / Hide Table of Contents

Class InventorizationManager

Performs an inventory scan of supplied assemblies using specified options. Items to be included in result must be tagged with Inventory attribute, otherwise then will be omitted unless OnlyAttributed == false. The scan is performed using options and inventorization strategies. This class is NOT THREAD SAFE

Inheritance
System.Object
InventorizationManager
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: NFX.Inventorization
Assembly: NFX.dll
Syntax
public class InventorizationManager

Constructors

InventorizationManager(IEnumerable<Assembly>)

Declaration
public InventorizationManager(IEnumerable<Assembly> assemblies)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<System.Reflection.Assembly> assemblies

InventorizationManager(IEnumerable<String>)

Declaration
public InventorizationManager(IEnumerable<string> assemblies)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<System.String> assemblies

InventorizationManager(String, String)

Delimiter assembly names with ';'

Declaration
public InventorizationManager(string assemblies, string path = null)
Parameters
Type Name Description
System.String assemblies
System.String path

Fields

ATTRIBUTES_NODE

Declaration
public const string ATTRIBUTES_NODE = "attributes"
Field Value
Type Description
System.String

Properties

Concerns

Imposes a filter on system concerns parameter of Inventory attribute

Declaration
[Config("$concerns")]
public SystemConcerns? Concerns { get; set; }
Property Value
Type Description
System.Nullable<SystemConcerns>

EndDate

Imposes a filter on EndDate parameter of Inventory attribute

Declaration
[Config("$enddate")]
public DateTime? EndDate { get; set; }
Property Value
Type Description
System.Nullable<System.DateTime>

OnlyAttributed

When true, inventorizes ONLY items that have have Inventory attribute applied. Even if this property is false but some other inventory filter specified, then an item must be Inventory-tagged to be included

Declaration
[Config("$attributed", Default = true)]
public bool OnlyAttributed { get; set; }
Property Value
Type Description
System.Boolean

Options

Options for inventorization strategies

Declaration
public IConfigSectionNode Options { get; set; }
Property Value
Type Description
IConfigSectionNode

Schema

Imposes a filter on schema parameter of Inventory attribute

Declaration
[Config("$schema")]
public string Schema { get; set; }
Property Value
Type Description
System.String

StartDate

Imposes a filter on StartDate parameter of Inventory attribute

Declaration
[Config("$startdate")]
public DateTime? StartDate { get; set; }
Property Value
Type Description
System.Nullable<System.DateTime>

Strategies

References inventorization strategies

Declaration
public Strategies Strategies { get; }
Property Value
Type Description
Strategies

Technology

Imposes a filter on technology parameter of Inventory attribute

Declaration
[Config("$technology")]
public string Technology { get; set; }
Property Value
Type Description
System.String

Tiers

Imposes a filter on system tiers parameter of Inventory attribute

Declaration
[Config("$tiers")]
public SystemTiers? Tiers { get; set; }
Property Value
Type Description
System.Nullable<SystemTiers>

Tool

Imposes a filter on tool parameter of Inventory attribute

Declaration
[Config("$tool")]
public string Tool { get; set; }
Property Value
Type Description
System.String

Methods

Run(ConfigSectionNode)

Runs inventorization routine dumping result into config node

Declaration
public void Run(ConfigSectionNode root)
Parameters
Type Name Description
ConfigSectionNode root

WriteInventoryAttributes(IEnumerable<InventoryAttribute>, ConfigSectionNode)

Adds nodes for InventoryAttributes

Declaration
public static void WriteInventoryAttributes(IEnumerable<InventoryAttribute> attrs, ConfigSectionNode root)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<InventoryAttribute> attrs
ConfigSectionNode root

WriteType(Type, ConfigSectionNode)

Describes type including generic arguments

Declaration
public static void WriteType(Type t, ConfigSectionNode node)
Parameters
Type Name Description
System.Type t
ConfigSectionNode node

Extension Methods

MiscUtils.NonNull<T>(T, Func<Exception>, String)
ObjectValueConversion.AsString(Object, String, ConvertErrorHandling)
ObjectValueConversion.AsNonNullOrEmptyString(Object)
ObjectValueConversion.AsLaconicConfig(Object, ConfigSectionNode, String, ConvertErrorHandling)
ObjectValueConversion.AsJSONConfig(Object, ConfigSectionNode, String, ConvertErrorHandling)
ObjectValueConversion.AsXMLConfig(Object, ConfigSectionNode, ConvertErrorHandling)
ObjectValueConversion.AsChar(Object, Char, ConvertErrorHandling)
ObjectValueConversion.AsNullableChar(Object, Nullable<Char>, ConvertErrorHandling)
ObjectValueConversion.AsByte(Object, Byte, ConvertErrorHandling)
ObjectValueConversion.AsNullableByte(Object, Nullable<Byte>, ConvertErrorHandling)
ObjectValueConversion.AsSByte(Object, SByte, ConvertErrorHandling)
ObjectValueConversion.AsNullableSByte(Object, Nullable<SByte>, ConvertErrorHandling)
ObjectValueConversion.AsShort(Object, Int16, ConvertErrorHandling)
ObjectValueConversion.AsNullableShort(Object, Nullable<Int16>, ConvertErrorHandling)
ObjectValueConversion.AsUShort(Object, UInt16, ConvertErrorHandling)
ObjectValueConversion.AsNullableUShort(Object, Nullable<UInt16>, ConvertErrorHandling)
ObjectValueConversion.AsInt(Object, Int32, ConvertErrorHandling)
ObjectValueConversion.AsNullableInt(Object, Nullable<Int32>, ConvertErrorHandling)
ObjectValueConversion.AsUInt(Object, UInt32, ConvertErrorHandling)
ObjectValueConversion.AsNullableUInt(Object, Nullable<UInt32>, ConvertErrorHandling)
ObjectValueConversion.AsLong(Object, Int64, ConvertErrorHandling)
ObjectValueConversion.AsNullableLong(Object, Nullable<Int64>, ConvertErrorHandling)
ObjectValueConversion.AsULong(Object, UInt64, ConvertErrorHandling)
ObjectValueConversion.AsNullableULong(Object, Nullable<UInt64>, ConvertErrorHandling)
ObjectValueConversion.AsDouble(Object, Double, ConvertErrorHandling)
ObjectValueConversion.AsNullableDouble(Object, Nullable<Double>, ConvertErrorHandling)
ObjectValueConversion.AsFloat(Object, Single, ConvertErrorHandling)
ObjectValueConversion.AsNullableFloat(Object, Nullable<Single>, ConvertErrorHandling)
ObjectValueConversion.AsDecimal(Object, Decimal, ConvertErrorHandling)
ObjectValueConversion.AsNullableDecimal(Object, Nullable<Decimal>, ConvertErrorHandling)
ObjectValueConversion.AsBool(Object, Boolean, ConvertErrorHandling)
ObjectValueConversion.AsNullableBool(Object, Nullable<Boolean>, ConvertErrorHandling)
ObjectValueConversion.AsGUID(Object, Guid, ConvertErrorHandling)
ObjectValueConversion.AsNullableGUID(Object, Nullable<Guid>, ConvertErrorHandling)
ObjectValueConversion.AsDateTime(Object)
ObjectValueConversion.AsDateTime(Object, DateTime, ConvertErrorHandling)
ObjectValueConversion.AsNullableDateTime(Object, Nullable<DateTime>, ConvertErrorHandling)
ObjectValueConversion.AsGDID(Object)
ObjectValueConversion.AsGDID(Object, GDID, ConvertErrorHandling)
ObjectValueConversion.AsNullableGDID(Object, Nullable<GDID>, ConvertErrorHandling)
ObjectValueConversion.AsGDIDSymbol(Object)
ObjectValueConversion.AsGDIDSymbol(Object, GDIDSymbol, ConvertErrorHandling)
ObjectValueConversion.AsNullableGDIDSymbol(Object, Nullable<GDIDSymbol>, ConvertErrorHandling)
ObjectValueConversion.AsTimeSpan(Object)
ObjectValueConversion.AsTimeSpan(Object, TimeSpan, ConvertErrorHandling)
ObjectValueConversion.AsNullableTimeSpan(Object, Nullable<TimeSpan>, ConvertErrorHandling)
ObjectValueConversion.AsEnum<TEnum>(Object, TEnum, ConvertErrorHandling)
ObjectValueConversion.AsNullableEnum<TEnum>(Object, Nullable<TEnum>, ConvertErrorHandling)
ObjectValueConversion.AsUri(Object, Uri, ConvertErrorHandling)
JSONExtensions.ToJSON(Object, JSONWritingOptions)
JSONExtensions.ToJSON(Object, TextWriter, JSONWritingOptions)
JSONExtensions.ToJSON(Object, Stream, JSONWritingOptions, Encoding)
ErlObject.ToErlObject(Object)
ErlObject.ToErlObject(Object, ErlTypeOrder, Boolean)
Back to top Copyright © 2006-2018 Agnicore Inc
Generated by DocFX