Esempio n. 1
0
        internal static object Post <T>(this IPomonaClient client, string uri, Action <T> postAction, RequestOptions options)
        {
            if (client == null)
            {
                throw new ArgumentNullException(nameof(client));
            }
            var postForm = (T)client.TypeMapper.CreatePostForm(typeof(T));

            postAction(postForm);
            return(client.Post(uri, postForm, options));
        }
Esempio n. 2
0
 public virtual TPostResponseResource Post(IPostForm form)
 {
     return((TPostResponseResource)Client.Post(Uri, (TResource)((object)form), null));
 }