Class Container
A container (e.g. an application or data store).
[DataContract]
public sealed class Container : StaticStructureElement, IEquatable<Container>
- Inheritance
-
Container
- Implements
- Inherited Members
Properties
CanonicalName
Gets the canonical name for this container.
public override string CanonicalName { get; }
Property Value
Components
The set of components within this container.
[DataMember(Name = "components", EmitDefaultValue = false)]
public ISet<Component> Components { get; set; }
Property Value
Parent
The software system that owns this container.
public override Element Parent { get; set; }
Property Value
SoftwareSystem
The software system that this container belongs to.
public SoftwareSystem SoftwareSystem { get; }
Property Value
Technology
The technology associated with this container (e.g. Windows Service).
[DataMember(Name = "technology", EmitDefaultValue = false)]
public string Technology { get; set; }
Property Value
Methods
AddComponent(string)
Adds a component with the specified name (unless one exists with the same name already).
public Component AddComponent(string name)
Parameters
namestringthe name of the component
Returns
- Component
a Component instance
AddComponent(string, string)
Adds a component with the specified name and description (unless one exists with the same name already).
public Component AddComponent(string name, string description)
Parameters
namestringthe name of the component
descriptionstringa short description/list of responsibilities
Returns
- Component
a Component instance
AddComponent(string, string, string)
Adds a component with the specified name, description and technology (unless one exists with the same name already).
public Component AddComponent(string name, string description, string technology)
Parameters
namestringthe name of the component
descriptionstringa short description/list of responsibilities
technologystringthe technology choice
Returns
- Component
a Component instance
AddComponent(string, string, string, string)
Adds a component whose primary implementation type is described by a fully qualified type name.
public Component AddComponent(string name, string type, string description, string technology)
Parameters
namestringThe component name.
typestringThe fully qualified implementation type name.
descriptionstringA short description of the component responsibilities.
technologystringThe implementation technology.
Returns
AddComponent(string, Type, string, string)
Adds a component whose primary implementation type is described by a CLR Type.
public Component AddComponent(string name, Type type, string description, string technology)
Parameters
namestringThe component name.
typeTypeThe CLR type that represents the component.
descriptionstringA short description of the component responsibilities.
technologystringThe implementation technology.
Returns
Equals(Container)
Compares this container with another container by canonical identity.
public bool Equals(Container container)
Parameters
containerContainerThe container to compare with.
Returns
GetComponentOfType(string)
Finds a component in this container by its primary implementation type.
public Component GetComponentOfType(string type)
Parameters
typestringThe fully qualified type name to search for.
Returns
GetComponentWithName(string)
Finds a component in this container by name.
public Component GetComponentWithName(string name)
Parameters
namestringThe component name to search for.
Returns
GetRequiredTags()
Returns the tags that are always applied to containers.
public override List<string> GetRequiredTags()