Example #1
0
 private void OnAfterConversionToEntity(object sender, AfterConversionToEntityEventArgs args)
 {
     if (args.Entity is Item item)
     {
         item.After = true;
     }
 }
Example #2
0
 static void Store_OnAfterConversionToEntity(object sender, AfterConversionToEntityEventArgs e)
 {
     // Original v5 to v6 converter did not set the Data.Id value causing it to be Guid.Empty
     if (e.Entity is SagaDataContainer sagaDataContainer && sagaDataContainer.Data.Id == Guid.Empty)
     {
         sagaDataContainer.Data.Id = new Guid(StripSagaIdFromDocumentId(e.Id));
     }
 }