We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10feb8c commit dbf44c7Copy full SHA for dbf44c7
src/Atc.Cosmos.EventStore.Cqrs/EventStreamId.cs
@@ -16,6 +16,16 @@ public EventStreamId(params string[] parts)
16
Value = string.Join(PartSeperator, parts);
17
}
18
19
+ /// <summary>
20
+ /// Initializes a new instance of the <see cref="EventStreamId"/> class from an existing <see cref="EventStreamId"/>.
21
+ /// </summary>
22
+ /// <param name="existing">The existing <see cref="EventStreamId"/>.</param>
23
+ public EventStreamId(EventStreamId existing)
24
+ {
25
+ Parts = existing.Parts;
26
+ Value = existing.Value;
27
+ }
28
+
29
public IReadOnlyList<string> Parts { get; }
30
31
public string Value { get; }
0 commit comments