Exemplo n.º 1
0
        public async Task <DavResponse> UpdateItem(string url, string authorization, string data, string headerUrl = "")
        {
            var davRequest = new DavRequest()
            {
                Url           = url,
                Authorization = authorization,
                Header        = headerUrl,
                Data          = data
            };

            return(await RadicaleClient.UpdateItemAsync(davRequest).ConfigureAwait(false));
        }
Exemplo n.º 2
0
        public async Task <DavResponse> UpdateItem(string url, string authorization, string data, string headerUrl = "")
        {
            var path       = (new Uri(url).AbsolutePath.StartsWith("/carddav")) ? (new Uri(url).AbsolutePath.Remove(0, 8)) : new Uri(url).AbsolutePath;
            var requrl     = defaultRadicaleUrl + path;
            var davRequest = new DavRequest()
            {
                Url           = requrl,
                Authorization = authorization,
                Header        = headerUrl,
                Data          = data
            };

            return(await RadicaleClient.UpdateItemAsync(davRequest).ConfigureAwait(false));
        }