Ejemplo n.º 1
0
 protected CatalogSubject(SystemResourceScheme Scheme, string host, string Name, INodeCatalogSubject Parent = null)
 {
     this.Parent           = Parent;
     this.Scheme           = Scheme;
     this.IsRoot           = Parent == null;
     this.SymbolicHost     = host;
     this.Name             = IsRoot ? $"/{host}/{Name}" : Name;
     this.Lineage          = DeriveLineage().ToList();
     this.RelativeLocation = IsRoot ? this.Name : DeriveRelativeLocation();
     this.Urn             = DeriveUrn();
     this.LineageSegments = Urn.NonSchemeComponents.Zip(RelativeLocation.Split('/'), (x, y) => (x, y)).ToList();
     this.Segment         = (Urn.ToString(), RelativeLocation.ToString());
 }
Ejemplo n.º 2
0
 public static SystemResourceUrn FromComponents(SystemResourceScheme scheme, params object[] Components)
 => new SystemResourceUrn(scheme, Components);
Ejemplo n.º 3
0
 public SystemResourceUrn(SystemResourceScheme scheme, params object[] Components)
     : base(scheme, Components)
 {
 }
Ejemplo n.º 4
0
 public SystemResourceUrn(SystemResourceScheme scheme, string Identifier)
     : base(scheme, Identifier)
 {
 }
Ejemplo n.º 5
0
 protected override SystemResourceUrn New(SystemResourceScheme scheme, string EverythingButScheme)
 => new SystemResourceUrn(scheme, EverythingButScheme);