BeforeUpdate / IIssueBeforeListener is triggered twice
Ive been looking into Countersoft.Gemini.Samples and have noticed that
BeforeUpdate / IIssueBeforeListener is triggered twice.
how to reproduce:
change
public Issue BeforeCreate(IssueEventArgs args)
{
if (args.Entity.GetWatchers().Count == 0) args.Entity.AddWatcher(args.User.Id);
return args.Entity;
}
public Issue BeforeUpdate(IssueEventArgs args)
{
return args.Entity;
}
to
public Issue BeforeCreate(IssueEventArgs args)
{
GeminiApp.LogException(new Exception("BeforeCreate") { Source = "IIssueBeforeListener" }, false);
return args.Entity;
}
public Issue BeforeUpdate(IssueEventArgs args)
{
GeminiApp.LogException(new Exception("BeforeUpdate") { Source = "IIssueBeforeListener" }, false);
return args.Entity;
}
* - then compile/copy*
* - in plannerview - move an item from "in sprint" to "In progress"*
* - look into system log and "BeforeUpdate IIssueBeforeListener" is listed twice.*
please advice.
Modist
· 1 |
|
Wednesday, January 30, 2013, 11:29:55 PM |