public BehaviorRecord(Behavior behavior) { Type = behavior.Type; UserId = behavior.UserId; ItemId = behavior.ItemId; Weight = behavior.Weight; UtcTimestamp = behavior.UtcTimestamp; }
public static void Receive(string instance, Behavior behavior) { Receive(instance, new[] { behavior }); }