.NET/C#
Use .NET Core to build and run a simple Hello World example that starts a node, puts a value into the cache, and then gets the value.
This chapter explains how to use .NET Core to build and run a simple Hello World example that starts a node, puts a value into the cache, and then gets the value.
Prerequisites
GridGain.NET was officially tested on:
JDK
JDK 17 or later
.NET
Any runtime that implements .NET Standard 2.0: .NET Framework 4.6.1+, .NET Core 2.0+, .NET 5+. The libraries target netstandard2.0, net8.0, and net10.0.
(Optional) Open Ports
Depending on your environment and what your plan is, you may want to open additional ports. GridGain uses the following ports:
47100-47200 — ports used by GridGain nodes to communicate. Specific ports used depend on node configuration.
47500-47600 — ports used by GridGain nodes to discover other nodes in the network. Specific ports used depend on node configuration.
10800 — the port used for thin clients, JDBC and ODBC connections.
8080 — the port used for REST API.
11211 — the port used by control script calls. This port should only be opened on nodes that need to send control script messages to other nodes.
Running a Simple .NET Example
Use the CLI (unix shell, Windows CMD or PowerShell, etc.) to run the following two commands:
> dotnet new consoleThis creates an empty project, which includes a project file with metadata and a .cs file with code.
And:
This modifies the project file -
.csproj- to add dependencies.Open
Program.csin any text editor and replace the contents as follows:Save and then run the program:
> dotnet run
As a result, you should see a node launch and the "Hello, World" text displayed right after the launch.
Next Steps
From here, you may want to:
Read more about using GridGain: Developers Guide, Administrators Guide
Use GridGain Control Center to monitor your cluster
This page is: Copyright © 2026 MariaDB. All rights reserved.
Last updated
Was this helpful?

