Skip to content

Commit dbb8115

Browse files
committed
πŸŽ‰ feat(build): GitHub Actions η‰ˆζœ¬θ‡³ v4
1 parent beac4d0 commit dbb8115

2 files changed

Lines changed: 7 additions & 8 deletions

File tree

β€Ž.github/workflows/build.ymlβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- name: Test
2828
run: dotnet test --configuration Release --no-build --verbosity normal --logger:trx
2929
- name: Upload Test Results
30-
uses: actions/upload-artifact@v2.2.0
30+
uses: actions/upload-artifact@v4
3131
with:
3232
# Artifact name
3333
name: Test Results

β€Žexamples/Transfer.Client/Program.csβ€Ž

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ namespace Transfer.Client
1717
internal class Program
1818
{
1919
private static readonly IdGenerator IdGen = new IdGenerator(0);
20-
private static IHost _host;
20+
private static IHost host;
2121

2222
private static async Task Main(string[] args)
2323
{
24-
var client = await StartClientWithRetries();
24+
var client = await StartClientWithRetries();
2525

2626
while (true)
2727
{
@@ -40,7 +40,8 @@ private static async Task Main(string[] args)
4040
break;
4141
}
4242
}
43-
_host.Dispose();
43+
44+
host.Dispose();
4445
}
4546

4647
private static async Task Normal(IClusterClient client)
@@ -177,11 +178,9 @@ private static async Task<IClusterClient> StartClientWithRetries(int initializeA
177178
{
178179
var builder = new HostBuilder()
179180
.UseOrleansClient(clientBuilder => clientBuilder.UseLocalhostClustering())
180-
// .ConfigureApplicationParts(parts =>
181-
// parts.AddApplicationPart(typeof(IAccount).Assembly).WithReferences())
182181
.ConfigureLogging(logging => logging.AddConsole());
183-
_host = builder.Build();
184-
client = _host.Services.GetService<IClusterClient>();
182+
host = builder.Build();
183+
client = host.Services.GetService<IClusterClient>();
185184
Console.WriteLine("Client successfully connect to silo host");
186185
break;
187186
}

0 commit comments

Comments
Β (0)