public async Task DeleteStateIdAsync(string flowId, Identity user, CancellationToken cancellationToken) { try { await _contextExtension.DeleteVariableAsync(user, GetStateKey(flowId), cancellationToken); } catch (LimeException ex) when(ex.Reason.Code == ReasonCodes.COMMAND_RESOURCE_NOT_FOUND) { return; } }
public override async Task DeleteVariableAsync(string name, CancellationToken cancellationToken) { if (name == null) { throw new ArgumentNullException(nameof(name)); } try { await _contextExtension.DeleteVariableAsync(UserIdentity, name.ToLowerInvariant(), cancellationToken); } catch (LimeException ex) when(ex.Reason.Code == ReasonCodes.COMMAND_RESOURCE_NOT_FOUND) { } }