示例#1
0
        private void AddObjectInternal(int objectId, NewObjectParameters parameters)
        {
            var lengthLimit = RequestParser.ValidateObjectParameters(parameters);

            var internalParams = RequestParser.GetInternalNewObjectParameters(objectId, parameters);

            if (lengthLimit.Count > 0)
            {
                AddObjectWithExcessiveValue(lengthLimit, internalParams);
            }
            else
            {
                RequestEngine.ExecuteRequest(internalParams);
            }
        }
示例#2
0
        private async Task AddObjectInternalAsync(int objectId, NewObjectParameters parameters)
        {
            var lengthLimit = RequestParser.ValidateObjectParameters(parameters);

            var internalParams = RequestParser.GetInternalNewObjectParameters(objectId, parameters);

            if (lengthLimit.Count > 0)
            {
                await AddObjectWithExcessiveValueAsync(lengthLimit, internalParams).ConfigureAwait(false);
            }
            else
            {
                await RequestEngine.ExecuteRequestAsync(internalParams).ConfigureAwait(false);
            }
        }