3 instantiations of MilvusServerResource
Aspire.Hosting.Milvus (1)
MilvusBuilderExtensions.cs (1)
52
var milvus = new
MilvusServerResource
(name, apiKeyParameter);
Aspire.Hosting.Milvus.Tests (2)
MilvusPublicApiTests.cs (2)
149
var action = () => new
MilvusServerResource
(name, apiKey);
161
var action = () => new
MilvusServerResource
(name, apiKey);
25 references to MilvusServerResource
Aspire.Hosting.Milvus (18)
MilvusBuilderExtensions.cs (13)
42
public static IResourceBuilder<
MilvusServerResource
> AddMilvus(this IDistributedApplicationBuilder builder,
52
var
milvus = new MilvusServerResource(name, apiKeyParameter);
56
.WithHttpEndpoint(port: grpcPort, targetPort: MilvusPortGrpc, name:
MilvusServerResource
.PrimaryEndpointName)
57
.WithEndpoint(
MilvusServerResource
.PrimaryEndpointName, endpoint =>
94
public static IResourceBuilder<MilvusDatabaseResource> AddDatabase(this IResourceBuilder<
MilvusServerResource
> builder, [ResourceName] string name, string? databaseName = null)
130
public static IResourceBuilder<T> WithAttu<T>(this IResourceBuilder<T> builder, Action<IResourceBuilder<AttuResource>>? configureContainer = null, string? containerName = null) where T :
MilvusServerResource
156
public static IResourceBuilder<
MilvusServerResource
> WithDataVolume(this IResourceBuilder<
MilvusServerResource
> builder, string? name = null, bool isReadOnly = false)
169
public static IResourceBuilder<
MilvusServerResource
> WithDataBindMount(this IResourceBuilder<
MilvusServerResource
> builder, string source, bool isReadOnly = false)
182
public static IResourceBuilder<
MilvusServerResource
> WithConfigurationBindMount(this IResourceBuilder<
MilvusServerResource
> builder, string configurationFilePath)
189
private static void ConfigureAttuContainer(EnvironmentCallbackContext context,
MilvusServerResource
resource)
MilvusDatabaseResource.cs (4)
9
/// A resource that represents a Milvus database. This is a child resource of a <see cref="
MilvusServerResource
"/>.
14
public class MilvusDatabaseResource(string name, string databaseName,
MilvusServerResource
parent) : Resource(name), IResourceWithParent<
MilvusServerResource
>, IResourceWithConnectionString
19
public
MilvusServerResource
Parent { get; } = parent;
MilvusServerResource.cs (1)
16
/// Initializes a new instance of the <see cref="
MilvusServerResource
"/> class.
Aspire.Hosting.Milvus.Tests (7)
AddMilvusTests.cs (2)
193
var
milvusResource = Assert.Single(appModel.Resources.OfType<
MilvusServerResource
>());
MilvusPublicApiTests.cs (5)
57
IResourceBuilder<
MilvusServerResource
> builder = null!;
69
IResourceBuilder<
MilvusServerResource
> builder = null!;
80
IResourceBuilder<
MilvusServerResource
> builder = null!;
91
IResourceBuilder<
MilvusServerResource
> builder = null!;
119
IResourceBuilder<
MilvusServerResource
> builder = null!;