1 instantiation of RedisResource
NativeIntegrations.Redis (1)
RedisExtensions.cs (1)
23return new RedisResource(native.Declaration(cache.Resource),
12 references to RedisResource
NativeIntegrations.Redis (2)
RedisExtensions.cs (2)
16public static async Task<RedisResource> AddRedis(Composition composition, string name, DeclaredValue password, CancellationToken cancellationToken) 94public async Task<RedisResource> WithDataVolume(string name)
NativeIntegrations.Redis.Contracts (10)
artifacts\obj\NativeIntegrations.Redis.Contracts\Debug\provider-contract\ProviderContract.g.cs (10)
17var result = await global::NativeIntegrations.Redis.RedisExtensions.AddRedis(new global::Aspire.Hosting.Native.Client.Composition(context.Client, args.GetProperty("composition")), args.GetProperty("name").GetString()!, new global::Aspire.Hosting.Native.Client.DeclaredValue(context.Client, args.GetProperty("password")), context.CancellationToken).ConfigureAwait(false); 22var result = context.ReadResource<global::NativeIntegrations.Redis.RedisResource>(args.GetProperty("context")).GetDeclaration(); 27var result = context.ReadResource<global::NativeIntegrations.Redis.RedisResource>(args.GetProperty("context")).GetConnection(); 32await context.ReadResource<global::NativeIntegrations.Redis.RedisResource>(args.GetProperty("context")).Initialize(new global::Aspire.Hosting.Native.Client.ResourceLifecycleScope(context.Client, args.GetProperty("scope")), context.CancellationToken).ConfigureAwait(false); 37await context.ReadResource<global::NativeIntegrations.Redis.RedisResource>(args.GetProperty("context")).Allocated(new global::Aspire.Hosting.Native.Client.ResourceLifecycleScope(context.Client, args.GetProperty("scope")), context.CancellationToken).ConfigureAwait(false); 42await context.ReadResource<global::NativeIntegrations.Redis.RedisResource>(args.GetProperty("context")).Ready(new global::Aspire.Hosting.Native.Client.ResourceLifecycleScope(context.Client, args.GetProperty("scope")), context.CancellationToken).ConfigureAwait(false); 47await context.ReadResource<global::NativeIntegrations.Redis.RedisResource>(args.GetProperty("context")).Retiring(new global::Aspire.Hosting.Native.Client.ResourceLifecycleScope(context.Client, args.GetProperty("scope")), context.CancellationToken).ConfigureAwait(false); 52var result = await context.ReadResource<global::NativeIntegrations.Redis.RedisResource>(args.GetProperty("context")).WithDataVolume(args.GetProperty("name").GetString()!).ConfigureAwait(false); 57var result = await context.ReadResource<global::NativeIntegrations.Redis.RedisResource>(args.GetProperty("context")).WithReference(new global::Aspire.Hosting.Native.Client.DeclaredResource(context.Client, args.GetProperty("consumer")), args.GetProperty("environmentName").GetString()!).ConfigureAwait(false);