Skip to content

Latest commit

 

History

History
55 lines (36 loc) · 1.99 KB

README.md

File metadata and controls

55 lines (36 loc) · 1.99 KB

UOMs DotNet Sample

Version: 1.2.4

Build Status

Developed against DotNet 6.0.

Running the sample

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.

Requirements

  • .NET 6.0 or later
    • Note: Visual Studio 17.1 or later is required for development against .NET 6.0
  • Reliable internet connection

Using Visual Studio

  • 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

Command Line

  • 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

Sample Steps

The UOM sample follows these steps

  1. Instantiate an SDS client and obtain an authentication token
  2. Create an SdsType with UOMs specified
  3. Create SdsStream with uom override
  4. Create SdsStream using default uom
  5. Generate data and send to both streams
  6. Retrieve data for both streams using stream default UOM
  7. Retrieve data for both streams using UOM request override
  8. Delete objects

Tested against DotNet 6.0.

For the main Cds samples page ReadMe
For the main AVEVA samples page ReadMe