public virtual void AddForumPostTokens(IList<Token> tokens, ForumPost forumPost) { tokens.Add(new Token("Forums.PostAuthor", forumPost.Customer.FormatUserName())); tokens.Add(new Token("Forums.PostBody", forumPost.FormatPostText(), true)); }
public virtual void AddForumPostTokens(IList<Token> tokens, ForumPost forumPost) { tokens.Add(new Token("Forums.PostAuthor", forumPost.Customer.FormatUserName())); tokens.Add(new Token("Forums.PostBody", forumPost.FormatPostText(), true)); //event notification _eventPublisher.EntityTokensAdded(forumPost, tokens); }
public virtual void AddForumPostTokens(IList<Token> tokens, ForumPost forumPost) { var customer = EngineContext.Current.Resolve<ICustomerService>().GetCustomerById(forumPost.CustomerId); tokens.Add(new Token("Forums.PostAuthor", customer.FormatUserName())); tokens.Add(new Token("Forums.PostBody", forumPost.FormatPostText(), true)); //event notification _eventPublisher.EntityTokensAdded(forumPost, tokens); }