Esempio n. 1
0
        public async Task <CompensationResult> Compensate(CompensateContext <ICreateDatabaseCustomerLog> context)
        {
            var log = context.Log;

            try
            {
                await _office365DbCustomerService.DeleteDatabaseCustomerAsync(log.Id);
            }
            catch (Exception ex)
            {
                this.Log().Fatal("Could not compensate for CreateDatabaseCustomerActivity.", ex);
            }
            return(context.Compensated());
        }