コード例 #1
0
ファイル: Meeting.cs プロジェクト: serakrin/presentations
 protected void OnMeetingScheduled(MeetingScheduledEvent @event)
 {
     _title = @event.Title;
       _description = @event.Description;
       _location = @event.Location;
       _scheduledFor = @event.ScheduledFor;
 }
コード例 #2
0
ファイル: Meeting.cs プロジェクト: serakrin/presentations
        public Meeting(Guid meetingId, String title, String description, String location, DateTime scheduledFor)
            : base(meetingId)
        {
            var @event = new MeetingScheduledEvent {
            MeetingId = meetingId,
            Title = title,
            Description = description,
            Location = location,
            ScheduledFor = scheduledFor
              };

              ApplyEvent(@event);
        }