예제 #1
0
 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);
     }
 }
예제 #2
0
 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);
     }
 }