public async ValueTask <bool> SetParameterAsync(string key, XmlRpcArg value, CancellationToken token = default) { if (key == null) { throw new ArgumentNullException(nameof(key)); } value.ThrowIfEmpty(); return((await SetParamAsync(key, value, token)).IsValid); }
public bool SetParameter(string key, XmlRpcArg value) { if (key == null) { throw new ArgumentNullException(nameof(key)); } value.ThrowIfEmpty(); return(SetParam(key, value).IsValid); }