コード例 #1
0
        public async Task <SuccessResponse> CreateAsyncWithHeaders(string objectName, object record, IDictionary <string, string> headers)
        {
            if (string.IsNullOrEmpty(objectName))
            {
                throw new ArgumentNullException("objectName");
            }
            if (record == null)
            {
                throw new ArgumentNullException("record");
            }

            return(await _jsonHttpClient.HttpPostAsyncWithHeaders <SuccessResponse>(record, string.Format("sobjects/{0}", objectName), headers).ConfigureAwait(false));
        }