示例#1
0
 protected virtual string LoadSubjectTemplate(UserAccountEvent evt)
 {
     return LoadTemplate(evt.GetType().Name + "_Subject");
 }
示例#2
0
 protected virtual Tokenizer GetTokenizer(UserAccountEvent evt)
 {
     Type type = evt.GetType();
     if (type == typeof(EmailChangeRequestedEvent)) return new EmailChangeRequestedTokenizer();
     if (type == typeof(EmailChangedEvent)) return new EmailChangedTokenizer();
     if (type == typeof(CertificateAddedEvent)) return new CertificateAddedTokenizer();
     if (type == typeof(CertificateRemovedEvent)) return new CertificateRemovedTokenizer();
     if (type == typeof(LinkedAccountAddedEvent)) return new LinkedAccountAddedTokenizer();
     if (type == typeof(LinkedAccountRemovedEvent)) return new LinkedAccountRemovedTokenizer();
     return new Tokenizer();
 }
示例#3
0
 protected virtual string LoadBodyTemplate(UserAccountEvent evt)
 {
     return LoadTemplate(evt.GetType().Name + "_Body");
 }