Exemple #1
0
        public void Update(object data)
        {
            if (_storage != null && _serializer != null)
            {
                var sagaentity = _storage.GetSaga(SagaContext.Id);

                if (sagaentity != null)
                {
                    sagaentity.Data = _serializer.Serialize(data);

                    sagaentity.Updated = DateTimeUtc;

                    sagaentity.Status = SagaContext.Status;

                    _storage.UpdateSaga(this, SagaContext.Id, sagaentity);
                }
            }
        }