CommunityToolkit.Aspire.Meilisearch 9.2.2-beta.218

Prefix Reserved
This is a prerelease version of CommunityToolkit.Aspire.Meilisearch.
There is a newer version of this package available.
See the version list below for details.
dotnet add package CommunityToolkit.Aspire.Meilisearch --version 9.2.2-beta.218
                    
NuGet\Install-Package CommunityToolkit.Aspire.Meilisearch -Version 9.2.2-beta.218
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="CommunityToolkit.Aspire.Meilisearch" Version="9.2.2-beta.218" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CommunityToolkit.Aspire.Meilisearch" Version="9.2.2-beta.218" />
                    
Directory.Packages.props
<PackageReference Include="CommunityToolkit.Aspire.Meilisearch" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add CommunityToolkit.Aspire.Meilisearch --version 9.2.2-beta.218
                    
#r "nuget: CommunityToolkit.Aspire.Meilisearch, 9.2.2-beta.218"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=CommunityToolkit.Aspire.Meilisearch&version=9.2.2-beta.218&prerelease
                    
Install CommunityToolkit.Aspire.Meilisearch as a Cake Addin
#tool nuget:?package=CommunityToolkit.Aspire.Meilisearch&version=9.2.2-beta.218&prerelease
                    
Install CommunityToolkit.Aspire.Meilisearch as a Cake Tool

CommunityToolkit.Aspire.Meilisearch

Registers a MeilisearchClient in the DI container for connecting to a Meilisearch.

Getting started

Prerequisites

  • Meilisearch cluster.

Install the package

Install the .NET Aspire Meilisearch Client library with NuGet:

dotnet add package CommunityToolkit.Aspire.Meilisearch

Usage example

In the Program.cs file of your project, call the AddMeilisearchClient extension method to register a MeilisearchClient for use via the dependency injection container. The method takes a connection name parameter.

builder.AddMeilisearchClient("meilisearch");

Configuration

The .NET Aspire Meilisearch Client integration provides multiple options to configure the server connection based on the requirements and conventions of your project.

Use a connection string

When using a connection string from the ConnectionStrings configuration section, you can provide the name of the connection string when calling builder.AddMeilisearchClient():

builder.AddMeilisearchClient("meilisearch");

And then the connection string will be retrieved from the ConnectionStrings configuration section:

{
    "ConnectionStrings": {
        "meilisearch": "Endpoint=http://localhost:19530/;MasterKey=123456!@#$%"
    }
}

Use configuration providers

The .NET Aspire Meilisearch Client integration supports Microsoft.Extensions.Configuration. It loads the MeilisearchClientSettings from configuration by using the Aspire:Meilisearch:Client key. Example appsettings.json that configures some of the options:

{
  "Aspire": {
    "Meilisearch": {
      "Client": {
        "Endpoint": "http://localhost:19530/",
        "MasterKey": "123456!@#$%"
      }
    }
  }
}

Use inline delegates

Also you can pass the Action<MeilisearchClientSettings> configureSettings delegate to set up some or all the options inline, for example to set the API key from code:

builder.AddMeilisearchClient("meilisearch", settings => settings.MasterKey = "123456!@#$%");

AppHost extensions

In your AppHost project, install the CommunityToolkit.Aspire.Hosting.Meilisearch library with NuGet:

dotnet add package CommunityToolkit.Aspire.Hosting.Meilisearch

Then, in the Program.cs file of AppHost, register a Meilisearch cluster and consume the connection using the following methods:

var meilisearch = builder.AddMeilisearch("meilisearch");

var myService = builder.AddProject<Projects.MyService>()
                       .WithReference(meilisearch);

The WithReference method configures a connection in the MyService project named meilisearch. In the Program.cs file of MyService, the Meilisearch connection can be consumed using:

builder.AddMeilisearchClient("meilisearch");

Then, in your service, inject MeilisearchClient and use it to interact with the Meilisearch API:

public class MyService(MeilisearchClient meilisearchClient)
{
    // ...
}

Additional documentation

Feedback & contributing

https://github.com/CommunityToolkit/Aspire

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
9.4.1-beta.277 0 4/23/2025
9.4.1-beta.276 0 4/23/2025
9.4.1-beta.275 0 4/23/2025
9.4.1-beta.274 0 4/23/2025
9.4.1-beta.273 0 4/23/2025
9.4.1-beta.272 0 4/23/2025
9.4.1-beta.271 0 4/23/2025
9.4.1-beta.270 42 4/20/2025
9.4.0 73 4/20/2025
9.4.0-beta.269 47 4/20/2025
9.4.0-beta.268 40 4/20/2025
9.3.1-beta.267 40 4/20/2025
9.3.1-beta.266 48 4/19/2025
9.3.1-beta.265 152 4/15/2025
9.3.1-beta.264 153 4/15/2025
9.3.1-beta.263 147 4/15/2025
9.3.1-beta.262 151 4/15/2025
9.3.1-beta.260 122 4/10/2025
9.3.1-beta.259 124 4/8/2025
9.3.1-beta.258 114 4/8/2025
9.3.1-beta.257 123 4/8/2025
9.3.1-beta.256 117 4/8/2025
9.3.1-beta.255 126 4/8/2025
9.3.1-beta.254 115 4/8/2025
9.3.1-beta.253 120 4/1/2025
9.3.1-beta.252 93 3/27/2025
9.3.1-beta.250 97 3/27/2025
9.3.1-beta.249 96 3/27/2025
9.3.1-beta.248 92 3/27/2025
9.3.1-beta.247 99 3/27/2025
9.3.1-beta.244 442 3/25/2025
9.3.1-beta.242 442 3/24/2025
9.3.1-beta.241 114 3/19/2025
9.3.0 601 3/19/2025
9.3.0-beta.239 110 3/19/2025
9.2.2-beta.237 114 3/19/2025
9.2.2-beta.236 81 3/14/2025
9.2.2-beta.230 111 3/13/2025
9.2.2-beta.229 109 3/13/2025
9.2.2-beta.228 119 3/11/2025
9.2.2-beta.227 120 3/11/2025
9.2.2-beta.226 127 3/11/2025
9.2.2-beta.225 121 3/11/2025
9.2.2-beta.224 118 3/11/2025
9.2.2-beta.223 123 3/10/2025
9.2.2-beta.222 130 3/10/2025
9.2.2-beta.220 118 3/9/2025
9.2.2-beta.218 123 3/9/2025
9.2.2-beta.217 159 3/7/2025
9.2.2-beta.216 164 3/7/2025
9.2.2-beta.215 161 3/7/2025
9.2.2-beta.214 157 3/5/2025
9.2.2-beta.213 156 3/5/2025
9.2.2-beta.212 159 3/5/2025
9.2.2-beta.211 164 3/4/2025
9.2.2-beta.210 161 3/4/2025
9.2.2-beta.208 62 3/3/2025
9.2.1 175 3/3/2025
9.2.1-beta.207 97 3/2/2025
9.2.1-beta.206 51 3/1/2025
9.2.1-beta.205 57 2/27/2025
9.2.1-beta.204 51 2/26/2025
9.2.1-beta.203 47 2/26/2025
9.2.0 134 2/26/2025
9.2.0-beta.202 51 2/26/2025
9.2.0-beta.201 56 2/26/2025
9.2.0-beta.199 53 2/26/2025
9.2.0-beta.198 53 2/26/2025
9.1.1-beta.197 55 2/25/2025
9.1.1-beta.196 50 2/25/2025
9.1.1-beta.195 53 2/25/2025
9.1.1-beta.194 52 2/25/2025
9.1.1-beta.193 48 2/25/2025
9.1.1-beta.192 56 2/24/2025
9.1.1-beta.191 50 2/24/2025
9.1.1-beta.190 51 2/19/2025
9.1.1-beta.189 61 2/19/2025
9.1.1-beta.188 64 2/19/2025
9.1.1-beta.187 57 2/19/2025
9.1.1-beta.183 68 2/18/2025
9.1.1-beta.182 62 2/18/2025
9.1.1-beta.181 74 2/18/2025
9.1.1-beta.180 61 2/17/2025
9.1.1-beta.178 57 2/17/2025
9.1.1-beta.177 66 2/12/2025
9.1.1-beta.176 62 2/11/2025
9.1.1-beta.175 59 2/11/2025
9.1.1-beta.173 57 2/10/2025
9.1.1-beta.169 56 2/6/2025
9.1.1-beta.168 52 2/5/2025
9.1.1-beta.166 54 2/5/2025
9.1.1-beta.165 54 2/5/2025
9.1.1-beta.164 58 2/3/2025
9.1.1-beta.162 57 2/3/2025
9.1.1-beta.155 57 1/30/2025
9.1.1-beta.154 51 1/30/2025
9.1.1-beta.153 50 1/30/2025
9.1.1-beta.152 44 1/29/2025
9.1.1-beta.150 48 1/29/2025
9.1.1-beta.148 52 1/26/2025
9.1.1-beta.147 48 1/26/2025
9.1.1-beta.146 53 1/23/2025
9.1.1-beta.145 49 1/22/2025
9.1.1-beta.144 50 1/22/2025
9.1.1-beta.142 49 1/22/2025
9.1.1-beta.140 52 1/22/2025
9.1.1-beta.139 49 1/21/2025
9.1.1-beta.138 48 1/20/2025
9.1.1-beta.137 41 1/17/2025
9.1.1-beta.136 40 1/15/2025
9.1.1-beta.135 21 1/15/2025
9.1.1-beta.134 21 1/15/2025
9.1.1-beta.128 35 1/9/2025
9.1.1-beta.127 38 1/9/2025
9.1.1-beta.126 47 1/9/2025
9.1.1-beta.125 43 1/9/2025
9.1.1-beta.124 41 1/9/2025
9.1.0 1,154 12/12/2024
9.1.0-beta.123 61 1/3/2025
9.1.0-beta.122 60 1/3/2025
9.1.0-beta.121 57 1/2/2025
9.1.0-beta.120 52 12/30/2024
9.1.0-beta.119 54 12/30/2024
9.1.0-beta.118 52 12/30/2024
9.1.0-beta.116 55 12/30/2024
9.1.0-beta.114 52 12/30/2024
9.1.0-beta.113 54 12/30/2024
9.1.0-beta.112 55 12/18/2024
9.1.0-beta.110 59 12/16/2024
9.1.0-beta.109 61 12/12/2024
9.0.1-beta.108 57 12/12/2024
9.0.1-beta.107 50 12/11/2024
9.0.1-beta.106 53 12/12/2024
9.0.1-beta.104 52 12/11/2024
9.0.1-beta.102 57 12/6/2024
9.0.1-beta.99 53 12/6/2024
9.0.1-beta.98 54 12/6/2024
9.0.1-beta.95 62 12/5/2024
9.0.1-beta.94 56 12/5/2024
9.0.1-beta.93 45 12/2/2024
9.0.1-beta.92 53 11/30/2024
9.0.1-beta.91 51 11/30/2024
9.0.1-beta.90 54 11/29/2024
9.0.1-beta.89 52 11/29/2024
9.0.1-beta.88 48 11/27/2024
9.0.1-beta.87 53 11/27/2024
9.0.1-beta.86 54 11/27/2024
9.0.1-beta.84 59 11/24/2024
9.0.1-beta.83 53 11/22/2024
9.0.1-beta.82 53 11/21/2024
9.0.1-beta.81 48 11/19/2024
9.0.1-beta.80 46 11/19/2024
9.0.1-beta.79 50 11/19/2024
9.0.1-beta.77 52 11/15/2024
9.0.0 286 11/15/2024
9.0.0-beta.76 52 11/14/2024
9.0.0-beta.75 51 11/14/2024
9.0.0-beta.74 51 11/14/2024
9.0.0-beta.73 51 11/14/2024
9.0.0-beta.72 56 11/14/2024
9.0.0-beta.71 55 11/13/2024
9.0.0-beta.70 57 11/13/2024
9.0.0-beta.69 55 11/13/2024
9.0.0-beta.68 53 11/13/2024
9.0.0-beta.67 56 11/13/2024
9.0.0-beta.66 57 11/13/2024
9.0.0-beta.63 56 11/12/2024
9.0.0-beta.54 53 10/31/2024
9.0.0-beta.53 51 10/29/2024
8.3.0 202 10/29/2024
8.3.0-beta.51 49 10/29/2024
8.3.0-beta.50 53 10/28/2024
8.3.0-beta.49 52 10/28/2024
8.3.0-beta.48 52 10/28/2024
8.3.0-beta.47 54 10/28/2024
8.3.0-beta.46 55 10/27/2024
8.3.0-beta.45 56 10/25/2024
8.3.0-beta.44 57 10/25/2024
8.3.0-beta.43 50 10/25/2024
8.3.0-beta.42 55 10/24/2024
8.2.1 107 10/23/2024
8.2.1-beta.40 44 10/23/2024
8.2.1-beta.39 51 10/23/2024
8.2.1-beta.38 55 10/23/2024
8.2.1-beta.37 54 10/23/2024
8.2.1-beta.36 54 10/23/2024
8.2.1-beta.35 52 10/23/2024
8.2.0-beta.34 54 10/23/2024
8.2.0-beta.33 58 10/23/2024
8.2.0-beta.32 52 10/22/2024
1.0.0-beta.60 59 11/11/2024
1.0.0-beta.58 49 11/4/2024
1.0.0-beta.57 52 11/1/2024
1.0.0-beta.56 50 11/1/2024
1.0.0-beta.55 49 11/1/2024