Skip to content

robbss/aspire-hosting-memgraph

Repository files navigation

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

About

Memgraph support for .NET Aspire.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages