Ejemplo n.º 1
0
 private void InitializeSaga(ISaga saga, SagaId id, ISagaState state)
 {
     if (state.Data is null)
     {
         saga.Initialize(id, state.State);
     }
     else
     {
         saga.InvokeGeneric(nameof(ISaga <object> .Initialize), id, state.State, state.Data);
     }
 }