tree: 1b976b12f68fc2f11172cf9f1e65d23304e29241 [path history] [tgz]
  1. .template.config/
  2. .vscode/
  3. images/
  4. ServerNode/
  5. Shared/
  6. Thick/
  7. Thin/
  8. Apache.Ignite.Examples.sln
  9. Apache.Ignite.Examples.sln.DotSettings
  10. Directory.Build.props
  11. README.md
modules/platforms/dotnet/examples/README.md

Ignite.NET Examples

  • Examples are grouped by Thick and Thin modes in corresponding folders.
  • Shared project contains common code, such as configuration and model classes.
  • ServerNode project is used to start Ignite server nodes.

Requirements

Windows, Linux, and macOS are supported.

Download Examples

  • NuGet:
    • dotnet new --install Apache.Ignite.Examples
    • dotnet new ignite-examples
  • Ignite website: https://ignite.apache.org/download.cgi
  • git: git clone https://github.com/apache/ignite --depth=1, cd ignite/modules/platforms/dotnet/examples

Run Examples

Command Line

  • Change to a specific example directory: cd Thick/Cache/PutGet
  • dotnet run

Thin Client examples require one or mode Ignite server node, run this in a separate terminal window before starting the example:

  • cd ServerNode
  • dotnet run

Visual Studio

  • Open Apache.Ignite.Examples.sln
  • Select an example on the Run toolbar and run

Visual Studio Screenshot

VS Code

  • Open current folder (from UI or with code . command)
  • Open “Run” panel (Ctrl+Shift+D - default shortcut for workbench.view.debug)
  • Select an example from the combobox on top and run

VS Code Screenshot

Rider

  • Open Apache.Ignite.Examples.sln
  • Select an example on the Run toolbar and run

Rider Toolbar Screenshot

  • Alternatively, open the example source code an run it using the sidebar icon

Rider Sidebar Screenshot