示例#1
0
 public void FailDiscussionInitiation()
 {
     if (Discussion.Availability == DiscussionAvailability.Ready)
     {
         DiscussionInitiationId = null;
         Discussion             = BacklogItemDiscussion.FromAvailability(DiscussionAvailability.Failed);
     }
 }
示例#2
0
        public void RequestDiscussion(DiscussionAvailability availability)
        {
            if (Discussion.Availability != DiscussionAvailability.Ready)
            {
                Discussion = BacklogItemDiscussion.FromAvailability(availability);

                DomainEventPublisher.Instance.Publish(
                    new BacklogItemDiscussionRequested(
                        TenantId,
                        ProductId,
                        BacklogItemId,
                        availability == DiscussionAvailability.Requested));
            }
        }
示例#3
0
 public void InitiateDiscussion(BacklogItemDiscussion discussion)
 {
     Discussion = discussion;
     DomainEventPublisher.Instance.Publish(
         new BacklogItemDiscussionInitiated(TenantId, BacklogItemId, discussion));
 }