Exemple #1
0
 public void Handle(GoogleAnalyticsEnabledEvent googleAnalyticsEnabledEvent)
 {
     var blogViewItem = _blogViewRepository.Find(y => y.BlogId == googleAnalyticsEnabledEvent.AggregateId);
     blogViewItem.UAAccount = googleAnalyticsEnabledEvent.UAAccount;
     blogViewItem.GoogleAnalyticsEnabled = true;
     _blogViewRepository.CommitChanges();
 }
Exemple #2
0
 public void EnableGoogleAnalytics(string uaAccount)
 {
     var googleAnalyticsEnabled = new GoogleAnalyticsEnabledEvent(uaAccount, AggregateId);
     Apply(googleAnalyticsEnabled);
 }
Exemple #3
0
 public void EnableGoogleAnalytics(GoogleAnalyticsEnabledEvent googleAnalyticsEnabledEvent)
 {
     _uaAccount = googleAnalyticsEnabledEvent.UAAccount;
 }