Skip to content

README .NET datalayer.provider.virtual

This .NET sample demonstrates how to write a light-weight provider, listing to a wildcard address and managing virtual nodes.

IMPORTANT:

The sample is recommended for large, very large or dynamic sized set of nodes to handle. We are listening just to any wildcarded address ( e.g. myRoot/**) and using self-managed virtual nodes, just returned in OnBrowse() method, which is very efficient.

Please read the Best Practise section in common .NET documentation for more details and recommended samples.

Introduction

The sample shows a basic concept for a leight-weight self-managed provider implementation

Description

The sample creates some virtual nodes hold by an self-managed dictionary using the address to look up.

Prerequisites

Please read the common .NET docs here, first.

Debug and Run

Launch the app with the debugger attached by pressing F5.

Build and Install

  1. Launch Visual Studio Code
  2. Click on the Remote Explorer from the menu.
  3. Choose Open Folder.
  4. Open the directory datalayer.provider.virtual.
  5. Build and install snap as described here.
  6. Checkout ctrlX Data Layer web frontend (Settings | Data Layer)
  7. Check the output using Diagnostics:

  8. Login into your ctrlX

  9. Navigate to Diagnostics -> Logbook
  10. Click Settings on the right top corner
  11. Enable Show system messages
  12. Navigate to Filter -> Units and check your snap.sdk-net-provider-virtual.app.service
  13. Now you should the see the app output diagnostics.
  14. Press Refresh to update.

  15. If you have root permissions, you can also watch the output on any ssh console with the command:

sudo snap logs sdk-net-provider-virtual.app -f | more

Install the App

Login into ctrlX and install the App (Apps).

Gratulations - We're finished - Let's start coding

Support

Developer Community

Please join the Developer Community

SDK Forum

Please visit the SDK Forum

Issues

If you've found an error in these sample, please file an issue

License

SPDX-FileCopyrightText: Bosch Rexroth AG SPDX-License-Identifier: MIT