private IPattern ChoosePattern(INotifyAction action, string senderName, Notify.Engine.NotifyRequest request) { if (action == NotifyConstants.Event_ShareDocument || action == NotifyConstants.Event_UpdateDocument) { return(ActionPatternProvider.GetPattern(action, senderName)); } return(null); }
private IPattern ChoosePattern(INotifyAction action, string senderName, Notify.Engine.NotifyRequest request) { if (action == NotifyConstants.Event_NewCommentForMessage) { var tag = request.Arguments.Find(tv => tv.Tag == "EventType"); if (tag != null) { return(PatternProvider.GetPattern(new NotifyAction(Convert.ToString(tag.Value)), senderName)); } } return(null); }