Version: 1.2.4
Developed against DotNet 6.0.
Configure the sample using the file appsettings.placeholder.json. Before editing, rename this file to appsettings.json
. This repository's .gitignore
rules should prevent the file from ever being checked in to any fork or branch, to ensure credentials are not compromised.
Replace the placeholders in the appsettings.json
file with your TenantID, NamespaceId, ClientID and ClientSecret.
- .NET 6.0 or later
- Note: Visual Studio 17.1 or later is required for development against .NET 6.0
- Reliable internet connection
- Load the .csproj
- Rebuild solution
- Run it
- If you want to see the token and other outputs from the program, put a breakpoint at the end of the main method and run in debug mode
- Make sure you have the install location of dotnet added to your path
- Run the following command from the location of this project:
dotnet run
The UOM sample follows these steps
- Instantiate an SDS client and obtain an authentication token
- Create an SdsType with UOMs specified
- Create SdsStream with uom override
- Create SdsStream using default uom
- Generate data and send to both streams
- Retrieve data for both streams using stream default UOM
- Retrieve data for both streams using UOM request override
- Delete objects
Tested against DotNet 6.0.
For the main Cds samples page ReadMe
For the main AVEVA samples page ReadMe