Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithGrainDirectory

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

Signature

methodWithGrainDirectory
Adds a grain directory provider to the Orleans service.
WithGrainDirectory(
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: