Table of Contents

Class DslIdGenerator

Namespace
C4.Net.Dsl
Assembly
C4.Net.Core.dll

Generates stable, slug-based identifiers for elements and relationships imported from DSL-shaped data.

public sealed class DslIdGenerator : IdGenerator
Inheritance
DslIdGenerator
Implements
Inherited Members

Methods

Found(string)

Registers an explicit identifier so future generated identifiers do not collide with it.

public void Found(string id)

Parameters

id string

The identifier that should be treated as already in use.

GenerateId(Element)

Generates a unique identifier for an element.

public string GenerateId(Element element)

Parameters

element Element

The element that needs an identifier.

Returns

string

A unique, slug-based identifier.

GenerateId(Relationship)

Generates a unique identifier for a relationship.

public string GenerateId(Relationship relationship)

Parameters

relationship Relationship

The relationship that needs an identifier.

Returns

string

A unique, slug-based identifier.