コード例 #1
0
        public async Task <DavResponse> GetCollection(string url, string authorization)
        {
            var davRequest = new DavRequest()
            {
                Url           = url,
                Authorization = authorization
            };

            return(await RadicaleClient.GetAsync(davRequest).ConfigureAwait(false));
        }
コード例 #2
0
        public async Task <DavResponse> GetCollection(string url, string authorization, string myUri)
        {
            var path           = (new Uri(url).AbsolutePath.StartsWith("/carddav")) ? (new Uri(url).AbsolutePath.Remove(0, 8)) : new Uri(url).AbsolutePath;
            var defaultUrlconn = defaultRadicaleUrl + path;
            var davRequest     = new DavRequest()
            {
                Url           = defaultUrlconn,
                Authorization = authorization,
                Header        = myUri
            };

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