Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithGrainStorage

Method
📦 Aspire.Hosting.Orleans v17.0.0
func (OrleansService) WithGrainStorage(
name string,
provider ResourceWithConnectionString,
) OrleansService

Signature

methodWithGrainStorage
Adds a grain storage provider to the Orleans service.
WithGrainStorage(
name string,
provider ResourceWithConnectionString,
) OrleansService
namestringThe name of the provider. This is the name the application will use to resolve the provider.
providerResourceWithConnectionStringThe provider to add.
OrleansService

The Orleans service builder.

Returns a handle; failures surface later via Err().

Applies to

This method applies to the following types: