예제 #1
0
 private IPattern ChoosePattern(INotifyAction action, string senderName, ASC.Notify.Engine.NotifyRequest request)
 {
     if (action == PhotoConst.NewEventComment)
     {
         if (request.Arguments.Exists((tv) => tv.Tag.Name == "FEED_TYPE"))
         {
             return(ActionPatternProvider.GetPattern(PhotoConst.NewPhotoUploaded, senderName) ?? ActionPatternProvider.GetPattern(PhotoConst.NewPhotoUploaded));
         }
     }
     return(null);
 }
 private IPattern ChoosePattern(INotifyAction action, string senderName, ASC.Notify.Engine.NotifyRequest request)
 {
     if (action == Constants.EditPage)
     {
         var tag = request.Arguments.Find(t => t.Tag == "ChangeType");
         if (tag != null && tag.Value.ToString() == "new wiki page comment")
         {
             return(PatternProvider.GetPattern(new NotifyAction(tag.Value.ToString()), senderName));
         }
     }
     return(null);
 }
예제 #3
0
 private IPattern ChoosePattern(INotifyAction action, string senderName, ASC.Notify.Engine.NotifyRequest request)
 {
     if (action == Constants.EditPage)
     {
         var tag = request.Arguments.Find((tv) => tv.Tag.Name == "ChangeType");
         if (tag != null && tag.Value.ToString() == "new wiki page comment")
         {
             if (senderName == "email.sender")
             {
                 return(PatternProvider.GetPattern("3"));
             }
             if (senderName == "messanger.sender")
             {
                 return(PatternProvider.GetPattern("3_jabber"));
             }
         }
     }
     return(null);
 }
예제 #4
0
 private IPattern ChoosePattern(INotifyAction action, string senderName, ASC.Notify.Engine.NotifyRequest request)
 {
     return(null);
 }