Пример #1
0
 public override Task SetVariableAsync(string name, string value, CancellationToken cancellationToken, TimeSpan expiration = default(TimeSpan))
 {
     if (name == null)
     {
         throw new ArgumentNullException(nameof(name));
     }
     return(_contextExtension.SetTextVariableAsync(UserIdentity, name.ToLowerInvariant(), value, cancellationToken, expiration));
 }
Пример #2
0
 public Task SetStateIdAsync(string flowId, Identity user, string stateId, CancellationToken cancellationToken)
 => _contextExtension.SetTextVariableAsync(user, GetStateKey(flowId), stateId, cancellationToken);