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); }
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); }