protected virtual string LoadSubjectTemplate(UserAccountEvent evt) { return LoadTemplate(evt.GetType().Name + "_Subject"); }
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(); }
protected virtual string LoadBodyTemplate(UserAccountEvent evt) { return LoadTemplate(evt.GetType().Name + "_Body"); }