1 instantiation of GarnetResource
Aspire.Hosting.Garnet.Tests (1)
GarnetPublicApiTests.cs (1)
41var action = () => new GarnetResource(name);
24 references to GarnetResource
Aspire.Hosting.Garnet (17)
GarnetBuilderExtensions.cs (17)
55public static IResourceBuilder<GarnetResource> AddGarnet(this IDistributedApplicationBuilder builder, [ResourceName] string name, 61var garnet = new GarnetResource(name); 79.WithEndpoint(port: port, targetPort: 6379, name: GarnetResource.PrimaryEndpointName) 89/// Use <see cref="WithPersistence(IResourceBuilder{GarnetResource}, TimeSpan?)"/> to adjust Garnet persistence configuration, e.g.: 103public static IResourceBuilder<GarnetResource> WithDataVolume(this IResourceBuilder<GarnetResource> builder, 122/// Use <see cref="WithPersistence(IResourceBuilder{GarnetResource}, TimeSpan?)"/> to adjust Garnet persistence configuration, e.g.: 136public static IResourceBuilder<GarnetResource> WithDataBindMount(this IResourceBuilder<GarnetResource> builder, 155/// Use with <see cref="WithDataBindMount(IResourceBuilder{GarnetResource}, string, bool)"/> 156/// or <see cref="WithDataVolume(IResourceBuilder{GarnetResource}, string?, bool)"/> to persist Garnet data across sessions with custom persistence configuration, e.g.: 168public static IResourceBuilder<GarnetResource> WithPersistence(this IResourceBuilder<GarnetResource> builder, 176/// Use with <see cref="WithDataBindMount(IResourceBuilder{GarnetResource}, string, bool)"/> 177/// or <see cref="WithDataVolume(IResourceBuilder{GarnetResource}, string?, bool)"/> to persist Garnet data across sessions with custom persistence configuration, e.g.: 187public static IResourceBuilder<GarnetResource> WithPersistence(this IResourceBuilder<GarnetResource> builder,
Aspire.Hosting.Garnet.Tests (7)
AddGarnetTests.cs (4)
24var containerResource = Assert.Single(appModel.Resources.OfType<GarnetResource>()); 52var containerResource = Assert.Single(appModel.Resources.OfType<GarnetResource>());
GarnetPublicApiTests.cs (3)
50IResourceBuilder<GarnetResource> builder = null!; 75IResourceBuilder<GarnetResource> builder = null!; 86IResourceBuilder<GarnetResource> builder = null!;