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

Commit

Permalink
Pass StorageOptions to GrainStorage (#44)
Browse files Browse the repository at this point in the history
That should work better than trying to pass GrainStorage to itself.
  • Loading branch information
KevinCathcart authored Apr 23, 2020
1 parent 10b5cc2 commit 531fdb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Orleans.Persistence.CosmosDB/CosmosDBGrainStorage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ public static class CosmosDBGrainStorageFactory
{
public static IGrainStorage Create(IServiceProvider services, string name)
{
var options = services.GetRequiredService<IOptionsMonitor<CosmosDBGrainStorage>>().Get(name);
var options = services.GetRequiredService<IOptionsMonitor<CosmosDBStorageOptions>>().Get(name);
return ActivatorUtilities.CreateInstance<CosmosDBGrainStorage>(services, options, name);
}
}
Expand Down

0 comments on commit 531fdb0

Please # to comment.