Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 private DistributionPolicy GetDistributionPolicyForEvent(NewEmailConfirmedDeveloper eventInfo)
 {
     return(DistributionPolicyFactory.GetAdminRelatedPolicy());
 }
Exemplo n.º 3
0
 private DistributionPolicy GetDistributionPolicyForEvent(NewDeveloperOnProject @eventInfo)
 {
     return
         (DistributionPolicyFactory.GetProjectRelatedPolicy(@eventInfo.ProjectId)
          .Merge(DistributionPolicyFactory.GetAdminRelatedPolicy()));
 }