我有一个看起来如下的 sager finder,我在 Findby 方法的第一行设置了一个断点,但它似乎永远不会执行。还有什么我需要做的吗?
public class MySagaFinder : IFindSagas<UncorroboratedCreateNewUser>.Using<FoundUser>
{
[Dependency]
public ISagaPersister Persister { get; set; }
[Dependency]
public IBus Bus { get; set; }
public UncorroboratedCreateNewUser FindBy(FoundUser message)
{
var data = Persister.Get<UncorroboratedCreateNewUser>("CorrelationId", message.CorrelationId);
if (data == null)
{
Bus.Return(0);
}
return data;
}
}