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); } }