<PackageReference Include="Castle.Windsor" Version="2.5.4" />

ComponentName

public class ComponentName : ISerializable
protected string internalliteralProperties

protected IDictionary<string, string> internalproperties

protected string internalService

public string this[string key] { get; }

public string LiteralProperties { get; }

public string Service { get; }

public ComponentName(string name)

Creates a ComponentName using a name pattern like "service:key=value,key2=value2"

public ComponentName(string service, string properties)

Creates a ComponentName with specified service and properties.

Serialization constructor.

protected virtual void Setup(string name)

Parses the full name extracting the service and properties.

protected virtual void SetupProperties(string properties)

Parses and validate a properties list string like "key=value,key2=value2" and so on.

protected virtual void SetupProperties(IDictionary<string, string> properties)

Validates a properties IDictionary.

protected virtual void SetupService(string service)

Sets up the service. Can be empty but can't be null.