Beispiel #1
0
            public TSagaDataToFind Find <TSagaDataToFind>(string sagaDataPropertyPath, object fieldFromMessage) where TSagaDataToFind : class, ISagaData
            {
                var result = innerPersister.Find <TSagaDataToFind>(sagaDataPropertyPath, fieldFromMessage);

                if (result != null)
                {
                    if (Correlated != null)
                    {
                        Correlated(result);
                    }
                }
                else
                {
                    if (CouldNotCorrelate != null)
                    {
                        CouldNotCorrelate();
                    }
                }
                return(result);
            }