Skip to content
This repository was archived by the owner on Jul 9, 2023. It is now read-only.

Commit 531fdb0

Browse files
Pass StorageOptions to GrainStorage (#44)
That should work better than trying to pass GrainStorage to itself.
1 parent 10b5cc2 commit 531fdb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Orleans.Persistence.CosmosDB/CosmosDBGrainStorage.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ public static class CosmosDBGrainStorageFactory
464464
{
465465
public static IGrainStorage Create(IServiceProvider services, string name)
466466
{
467-
var options = services.GetRequiredService<IOptionsMonitor<CosmosDBGrainStorage>>().Get(name);
467+
var options = services.GetRequiredService<IOptionsMonitor<CosmosDBStorageOptions>>().Get(name);
468468
return ActivatorUtilities.CreateInstance<CosmosDBGrainStorage>(services, options, name);
469469
}
470470
}

0 commit comments

Comments
 (0)