Upgrading Your Code to WebDAV Client Library for .NET v5.0
IT Hit WebDAV Client Library v5 for .NET provides a .NET 5.0 support based on HttpClient classes.
The v5 is not backward compatible with v4 version.
How to Migrate Your Code to New HttpClient Interfaces
Follow the steps below:
- Change the reference to ITHit.WebDAV.Client.dll in your project. Remove the old reference and add the new one located under \Async\ folder.
- Replace WebDavSessionAsync class with WebDAVSession.
- Replace Open prefix for WebDAVSession methods with Get prefix. For example replace OpenFolderAsync with GetFolderAsync.
- Remove 'Async' suffix to all interfaces. For example, replace IFolderAsync with IFolder.
- Follow API changes to implement all other key points changes.