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()
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
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
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
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
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
WriteInventoryAttributes(IEnumerable<InventoryAttribute>, ConfigSectionNode)
Adds nodes for InventoryAttributes
Declaration
public static void WriteInventoryAttributes(IEnumerable<InventoryAttribute> attrs, ConfigSectionNode root)
Parameters
WriteType(Type, ConfigSectionNode)
Describes type including generic arguments
Declaration
public static void WriteType(Type t, ConfigSectionNode node)
Parameters
Extension Methods