withGrainDirectory

Method
📦 Aspire.Hosting.Orleans v17.0.0
interface OrleansService {
// ... omitted for brevity
withGrainDirectory(
name: string,
provider: IResourceWithConnectionString): OrleansService;
}

Signature

methodwithGrainDirectory
Adds a grain directory provider to the Orleans service.
withGrainDirectory(
name: string,
provider: IResourceWithConnectionString): OrleansService
namestringThe name of the provider. This is the name the application will use to resolve the provider.
providerIResourceWithConnectionStringThe provider to add.
OrleansService

Applies to

This method applies to the following types: