Skip to content

Commit

Permalink
update example to Orleans 8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentH-Net committed May 7, 2024
1 parent 585b82e commit 09f88f7
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/Example/Apis/Apis.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Orleans.Persistence.AzureStorage" Version="8.0.0" />
<PackageReference Include="Microsoft.Orleans.Persistence.Memory" Version="8.0.0" />
<PackageReference Include="Microsoft.Orleans.Sdk" Version="8.0.0" />
<PackageReference Include="Microsoft.Orleans.Persistence.AzureStorage" Version="8.1.0" />
<PackageReference Include="Microsoft.Orleans.Persistence.Memory" Version="8.1.0" />
<PackageReference Include="Microsoft.Orleans.Sdk" Version="8.1.0" />
<PackageReference Include="Orleans.Multitenant" Version="2.0.0-preview.1" />
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="8.0.3" />
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="8.0.4" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.5.0" />
</ItemGroup>

Expand Down
5 changes: 3 additions & 2 deletions src/Example/Apis/Foundation/Program.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Microsoft.OpenApi.Models;
using Azure.Data.Tables;
using Orleans.Configuration;
using Orleans.Multitenant;
using Orleans.Storage;
Expand All @@ -12,13 +13,13 @@
.AddMultitenantCommunicationSeparation()
.AddMultitenantGrainStorageAsDefault<AzureTableGrainStorage, AzureTableStorageOptions, AzureTableGrainStorageOptionsValidator>(
(silo, name) => silo.AddAzureTableGrainStorage(name, options =>
options.ConfigureTableServiceClient(tableStorageConnectionString)),
options.TableServiceClient = new TableServiceClient(tableStorageConnectionString)),
// Called during silo startup, to ensure that any common dependencies
// needed for tenant-specific provider instances are initialized

configureTenantOptions: (options, tenantId) =>
{
options.ConfigureTableServiceClient(tableStorageConnectionString);
options.TableServiceClient = new TableServiceClient(tableStorageConnectionString);
options.TableName = $"OrleansGrainState{tenantId}";
} // Called on the first grain state access for a tenant in a silo,
// to initialize the options for the tenant-specific provider instance
Expand Down
2 changes: 1 addition & 1 deletion src/Example/Contracts/Contracts.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Orleans.Sdk" Version="8.0.0" />
<PackageReference Include="Microsoft.Orleans.Sdk" Version="8.1.0" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion src/Example/Services.Tenant/Services.Tenant.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Orleans.Sdk" Version="8.0.0" />
<PackageReference Include="Microsoft.Orleans.Sdk" Version="8.1.0" />
<PackageReference Include="Orleans.Multitenant" Version="2.0.0-preview.1" />
</ItemGroup>

Expand Down

0 comments on commit 09f88f7

Please sign in to comment.