Robbss.Aspire.Hosting.Memgraph
9.0.0
dotnet add package Robbss.Aspire.Hosting.Memgraph --version 9.0.0
NuGet\Install-Package Robbss.Aspire.Hosting.Memgraph -Version 9.0.0
<PackageReference Include="Robbss.Aspire.Hosting.Memgraph" Version="9.0.0" />
paket add Robbss.Aspire.Hosting.Memgraph --version 9.0.0
#r "nuget: Robbss.Aspire.Hosting.Memgraph, 9.0.0"
// Install Robbss.Aspire.Hosting.Memgraph as a Cake Addin #addin nuget:?package=Robbss.Aspire.Hosting.Memgraph&version=9.0.0 // Install Robbss.Aspire.Hosting.Memgraph as a Cake Tool #tool nuget:?package=Robbss.Aspire.Hosting.Memgraph&version=9.0.0
Aspire.Hosting.Memgraph
Provides extension methods and resource definitions for .NET Aspire AppHost to configure a Memgraph resource.
Getting started
Install the package
In your AppHost Project, install the .NET Aspire Memgraph Hosting library with NuGet:
dotnet add package Aspire.Hosting.Memgraph
Usage example
Then, in the Program.cs file of AppHost
, add a Memgraph resource and consume the connection using the following methods:
var memegraph = builder
.AddMemgraph("example-name");
var myservice = builder
.AddProject<Projects.MyService>()
.WithReference(memegraph);
Memgraph Lab
An instance of Memgraph Lab, configured with quick connect can also be included with the following method:
var memegraph = builder
.AddMemgraph("example-name")
.WithMemgraphLab();
Additional resources
https://memgraph.com/docs/getting-started/install-memgraph/docker
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
-
net9.0
- Aspire.Hosting (>= 9.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.