Exemple #1
0
        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);
        }
Exemple #2
0
        public bool SetParameter(string key, XmlRpcArg value)
        {
            if (key == null)
            {
                throw new ArgumentNullException(nameof(key));
            }

            value.ThrowIfEmpty();
            return(SetParam(key, value).IsValid);
        }