public static async Task <WebDavNavigationService> InintializeAsync()
        {
            if (_instance != null)
            {
                return(_instance);
            }
            _instance = new WebDavNavigationService();
            var item = new DavItem {
                Href = Configuration.ServerUrl, IsCollection = true
            };
            await _instance.NavigateAsync(item);

            return(_instance);
        }
示例#2
0
        public static async Task <WebDavNavigationService> InintializeAsync()
        {
            if (_instance != null)
            {
                return(_instance);
            }
            _instance = new WebDavNavigationService();
            var item = new DavItem {
                Href = Configuration.ServerUrl, IsCollection = true
            };

            try
            {
                await _instance.NavigateAsync(item);
            }
            catch (Exception e)
            {
                await ExceptionHandlerService.HandleException(e, e.Message);
            }
            return(_instance);
        }