Skip to content

Commit

Permalink
Fix #1
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentH-Net committed Jun 6, 2023
1 parent c04aa9a commit 910bdb9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Orleans.Multitenant/Internal/StorageProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@ sealed class MultitenantStorage : IGrainStorage, ILifecycleParticipant<ISiloLife
public MultitenantStorage(
string name,
MultitenantStorageOptions options,
ITenantGrainStorageFactory tenantGrainStorageFactory,
IServiceProvider serviceProvider,
ILogger<MultitenantStorage> logger)
=> (this.name, this.options, this.tenantGrainStorageFactory, this.logger) = (name, options, tenantGrainStorageFactory, logger);
=> (this.name, this.options, tenantGrainStorageFactory, this.logger) =
(name, options, serviceProvider.GetRequiredServiceByName<ITenantGrainStorageFactory>(name), logger);

public async Task ClearStateAsync<T>(string grainType, GrainId grainId, IGrainState<T> grainState)
{
Expand Down

0 comments on commit 910bdb9

Please sign in to comment.