Skip to content

Commit effd27f

Browse files
authored
fix(generator): adjust documentation (#78)
1 parent 1c570e5 commit effd27f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/Utils/ActivityIdGenerator.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,15 @@ public static class ActivityIdGenerator
1414
// UUID epoch (October 15, 1582) and Unix epoch (January 1, 1970)
1515
private static long UuidEpochDifference = 122192928000000000;
1616

17-
/// <summary>Generates an Activity ID for the given epoch timestamp and foreign ID.</summary>
17+
/// <summary>Generates an Activity ID for the given foreign ID and epoch timestamp.</summary>
1818
public static Guid GenerateId(string foreignId, int epoch)
1919
{
2020
return GenerateId(foreignId, Epoch.AddSeconds(epoch));
2121
}
2222

2323
/// <summary>
24-
/// Generates an Activity ID for the given timestamp and foreign ID.
25-
/// <paramref name="timestamp"/> must be UTC.
24+
/// Generates an Activity ID for the given foreign ID and timestamp.
2625
/// </summary>
27-
/// <exception cref="ArgumentException">Raised if the timestamp kind if not UTC.</exception>
2826
public static Guid GenerateId(string foreignId, DateTime timestamp)
2927
{
3028
// The backend doesn't care about milliseconds, so we truncate the date here.

0 commit comments

Comments
 (0)