Skip to content

Commit 3129765

Browse files
committed
Use Microsoft.Orleans.Persistence.Redis
1 parent 83e5b76 commit 3129765

File tree

4 files changed

+57
-5
lines changed

4 files changed

+57
-5
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"workbench.colorCustomizations": {
3+
"activityBar.activeBackground": "#c2c7c3",
4+
"activityBar.background": "#c2c7c3",
5+
"activityBar.foreground": "#15202b",
6+
"activityBar.inactiveForeground": "#15202b99",
7+
"activityBarBadge.background": "#8370cf",
8+
"activityBarBadge.foreground": "#15202b",
9+
"commandCenter.border": "#15202b99",
10+
"sash.hoverBorder": "#c2c7c3",
11+
"statusBar.background": "#a7afa9",
12+
"statusBar.debuggingBackground": "#afa7ad",
13+
"statusBar.debuggingForeground": "#15202b",
14+
"statusBar.foreground": "#15202b",
15+
"statusBarItem.hoverBackground": "#8c978f",
16+
"statusBarItem.remoteBackground": "#a7afa9",
17+
"statusBarItem.remoteForeground": "#15202b",
18+
"titleBar.activeBackground": "#a7afa9",
19+
"titleBar.activeForeground": "#15202b",
20+
"titleBar.inactiveBackground": "#a7afa999",
21+
"titleBar.inactiveForeground": "#15202b99"
22+
},
23+
"peacock.color": "#a7afa9"
24+
}

projects/orleans/orleans-3/Program.cs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,14 @@
1414
options.ServiceId = "orleans-2";
1515
})
1616
.Configure<EndpointOptions>(options => options.AdvertisedIPAddress = IPAddress.Loopback)
17-
.AddRedisGrainStorage("redis-timer", optionsBuilder => optionsBuilder.Configure(options =>
17+
.AddRedisGrainStorage("redis-timer", options =>
1818
{
19-
options.ConnectionString = "localhost:6379";
20-
options.DatabaseNumber = 1;
21-
}));
19+
options.ConfigurationOptions = new StackExchange.Redis.ConfigurationOptions
20+
{
21+
EndPoints = { { "localhost", 6379 } },
22+
AbortOnConnectFail = false
23+
};
24+
});
2225
});
2326

2427
var app = builder.Build();

projects/orleans/orleans-3/orleans-3.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
</PropertyGroup>
77
<ItemGroup>
88
<PackageReference Include="Microsoft.Orleans.Server" Version="8.0.0" />
9-
<PackageReference Include="Orleans.Persistence.Redis" Version="7.0.0" />
9+
<PackageReference Include="Microsoft.Orleans.Persistence.Redis" Version="8.0.0" />
1010
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="8.0.0" />
1111
</ItemGroup>
1212
</Project>
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.5.002.0
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "orleans-3", "orleans-3.csproj", "{A56EC8A6-F3D6-41A1-8CC8-B20CE28C0224}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Any CPU = Debug|Any CPU
11+
Release|Any CPU = Release|Any CPU
12+
EndGlobalSection
13+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14+
{A56EC8A6-F3D6-41A1-8CC8-B20CE28C0224}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{A56EC8A6-F3D6-41A1-8CC8-B20CE28C0224}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{A56EC8A6-F3D6-41A1-8CC8-B20CE28C0224}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{A56EC8A6-F3D6-41A1-8CC8-B20CE28C0224}.Release|Any CPU.Build.0 = Release|Any CPU
18+
EndGlobalSection
19+
GlobalSection(SolutionProperties) = preSolution
20+
HideSolutionNode = FALSE
21+
EndGlobalSection
22+
GlobalSection(ExtensibilityGlobals) = postSolution
23+
SolutionGuid = {1BF268AA-95B8-4259-A610-128576996097}
24+
EndGlobalSection
25+
EndGlobal

0 commit comments

Comments
 (0)