public override void ConsumeEvent(IEventInfo eventInfo)
        {
            Require.NotNull(eventInfo, nameof(eventInfo));

            var @event = new Event(eventInfo);

            var distributionPolicy = DistributionPolicyFactory.GetAdminRelatedPolicy();

            EventRepository.DistrubuteEvent(@event, distributionPolicy);

            SendOutEmailsAboutEvent(distributionPolicy.ReceiverIds, eventInfo);
        }
 private DistributionPolicy GetDistributionPolicyForEvent(NewEmailConfirmedDeveloper eventInfo)
 {
     return(DistributionPolicyFactory.GetAdminRelatedPolicy());
 }
Exemple #3
0
 private DistributionPolicy GetDistributionPolicyForEvent(NewDeveloperOnProject @eventInfo)
 {
     return
         (DistributionPolicyFactory.GetProjectRelatedPolicy(@eventInfo.ProjectId)
          .Merge(DistributionPolicyFactory.GetAdminRelatedPolicy()));
 }