CodeSharp.EventSourcing.RecorderItem.RecorderItem C# (CSharp) Method

RecorderItem() public method

public RecorderItem ( TimeRecorder timeRecorder, string description ) : System
timeRecorder TimeRecorder
description string
return System
        public RecorderItem(TimeRecorder timeRecorder, string description)
        {
            if (timeRecorder == null)
            {
                throw new ArgumentNullException("timeRecorder");
            }

            Id = Guid.NewGuid().ToString();
            TimeRecorder = timeRecorder;
            StartTicks = TimeRecorder.GetCurrentTicks();
            StartTime = DateTime.Now;
            Description = description;
            IsCompleted = false;
            ChildRecorderItems = new List<RecorderItem>();
        }