Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

OrleansService.WithGrainDirectory

Method
📦 Aspire.Hosting.Orleans v17.0.0
type OrleansService interface {
// ... omitted for brevity
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().

Defined on

This method is defined on the following type: