MCPcopy Create free account
hub / github.com/TryCatchLearn/Overflow / MakeEvent

Method MakeEvent

Reputation/ReputationHelper.cs:16–27  ·  view source on GitHub ↗
(
        string userId,
        ReputationReason reason,
        string actorUserId,
        DateTime? occurred = null)

Source from the content-addressed store, hash-verified

14 };
15
16 public static UserReputationChanged MakeEvent(
17 string userId,
18 ReputationReason reason,
19 string actorUserId,
20 DateTime? occurred = null)
21 => new(
22 UserId: userId,
23 Delta: GetDelta(reason),
24 Reason: reason,
25 ActorUserId: actorUserId,
26 Occurred: DateTime.UtcNow
27 );
28}

Callers 2

Program.csFile · 0.80
AcceptAnswerMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected