From 147fe00f1a61361334bb5d20a85729ccfc917982 Mon Sep 17 00:00:00 2001 From: peterdeme Date: Tue, 24 May 2022 15:59:51 +0200 Subject: [PATCH] fix(generator): adjust documentation --- src/Utils/ActivityIdGenerator.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Utils/ActivityIdGenerator.cs b/src/Utils/ActivityIdGenerator.cs index f1b3404..c61c58f 100644 --- a/src/Utils/ActivityIdGenerator.cs +++ b/src/Utils/ActivityIdGenerator.cs @@ -14,17 +14,15 @@ public static class ActivityIdGenerator // UUID epoch (October 15, 1582) and Unix epoch (January 1, 1970) private static long UuidEpochDifference = 122192928000000000; - /// Generates an Activity ID for the given epoch timestamp and foreign ID. + /// Generates an Activity ID for the given foreign ID and epoch timestamp. public static Guid GenerateId(string foreignId, int epoch) { return GenerateId(foreignId, Epoch.AddSeconds(epoch)); } /// - /// Generates an Activity ID for the given timestamp and foreign ID. - /// must be UTC. + /// Generates an Activity ID for the given foreign ID and timestamp. /// - /// Raised if the timestamp kind if not UTC. public static Guid GenerateId(string foreignId, DateTime timestamp) { // The backend doesn't care about milliseconds, so we truncate the date here.