Table of Contents

Interface IdGenerator

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

Defines how identifiers are generated and tracked for model elements and relationships.

public interface IdGenerator

Methods

Found(string)

Called when loading/deserializing a model, to indicate that the specified ID has been found (and shouldn't be reused when generating new IDs).

void Found(string id)

Parameters

id string

The ID that has been found.

GenerateId(Element)

Generates an ID for the specified model element.

string GenerateId(Element element)

Parameters

element Element

an Element instance

Returns

string

the ID

GenerateId(Relationship)

Generates an ID for the specified relationship.

string GenerateId(Relationship relationship)

Parameters

relationship Relationship

A relationship instance.

Returns

string

The generated identifier.