private Either <InstallationError, InstallationDto> RunIntegration(Either <InstallationError, InstallationDto> context) { DateTimeOffset beginTime = DateTimeOffset.Now; _logger.LogInformation($"Integration process begin at {beginTime}"); if (context.IsLeft) { _logger.LogWarning($"Integration process finished due to a core error after {FormatExecTime(beginTime)}"); return(context); } if (context.IsRight && context.Get.IsReadValid) { _logger.LogTrace($"Integration process finished with no action after {FormatExecTime(beginTime)}"); return(context); } return(Update(InstallationUpdateCommand.TemporaryDevCreate(context.Get)) .Peek(success => { _logger.LogInformation($"Integration process finished with success result after {FormatExecTime(beginTime)}"); }) .PeekLeft(failure => { _logger.LogWarning($"Integration process finished due to a integration error after {FormatExecTime(beginTime)}"); })); }
public Either <InstallationError, InstallationDto> Update(InstallationUpdateCommand command) { // TODO [log] throw new System.NotImplementedException(); }
public Either <InstallationError, InstallationDto> Update(InstallationUpdateCommand command) { throw new NotImplementedException(); }
public Either <InstallationError, InstallationDto> Update(InstallationUpdateCommand command) { // TODO [Measurements] return(command.TemporaryDevResultFunction()); }