File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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 }
You canβt perform that action at this time.
0 commit comments