public async Task <string> GetStateIdAsync(string flowId, Identity user, CancellationToken cancellationToken) { try { return(await _contextExtension.GetTextVariableAsync(user, GetStateKey(flowId), cancellationToken)); } catch (LimeException ex) when(ex.Reason.Code == ReasonCodes.COMMAND_RESOURCE_NOT_FOUND) { return(null); } }
public override async Task <string> GetContextVariableAsync(string name, CancellationToken cancellationToken) { try { return(await _contextExtension.GetTextVariableAsync(UserIdentity, name, cancellationToken)); } catch (LimeException ex) when(ex.Reason.Code == ReasonCodes.COMMAND_RESOURCE_NOT_FOUND) { return(null); } }