This repository is where we develop the .NET SDK libraries for Waives. The .NET SDK targets .NET Standard 2.0. We explicitly support .NET Core 2.1 and higher, as well as .NET Framework 4.7.2 and higher. The SDK should work on Mono version 5.4 and higher, but this is not tested and support is on a best- effort basis only.
If you are using Visual Studio, please ensure you are using Visual Studio 2017 or later.
The Waives .NET SDK is available as a set of NuGet packages. You can install them in the usual way, detailed below for stable builds and early releases. The documentation has information to help you get started, and you will need to obtain an API client ID and secret from the Waives dashboard.
These are available from the public NuGet feed, and can be installed using one of the following mechanisms, as best suits your application.
Install-Package Waives.Pipelines
dotnet add package Waives.Pipelines
<PackageReference Include="Waives.Pipelines" Version="1.0.0" />
If you need a preview (pre-beta) release, you can pull the bleeding-edge versions of the libraries from our MyGet feed, as described here.
Install-Package -Pre Waives.Pipelines -Source https://www.myget.org/F/waives-nightly/api/v3/index.json
dotnet add package Waives.Pipelines --source https://www.myget.org/F/waives-nightly/api/v3/index.json
Create a file called NuGet.config
in the same location as your Visual Studio solution file, and
add the following content to it:
<?xml version="1.0" encoding="utf-8"?> <configuration>
<packageSources>
<add key="Waives Pre-Release" value="https://www.myget.org/F/waives-nightly/api/v3/index.json" protocolVersion="3" />
</packageSources>
</configuration>
Now update your project file to include the following line, replacing the version string with the version you wish to install.
<PackageReference Include="Waives.Pipelines" Version="1.0.0" />
The File system sorter sample app watches a folder for any new files dropped into that folder, classifies them using the specified Waives classifer, and moves the files to the specified outbox, under a subfolder named for the resulting document type from classification.
The Blob storage processor sample app enumerates all blobs in the specified blob storage container(s), classifies them using the specified Waives classifer, and writes the results in CSV format to the console or to the specified destination file.