无法在 Orleans 7.0 上使用 ClientBuilder 创建 ClusterClient

meh*_*dvd 3 c# orleans .net-core

我能够在 Orleans v3.6.0 中创建集群客户端。Build()但现在在 v7.0 中,类中没有方法ClientBuilder

var client = new ClientBuilder()
   .UseLocalhostClustering()
   .Build(); // gives an error here.
Run Code Online (Sandbox Code Playgroud)

我查了源码,接口Build上没有方法IClientBuilder

我应该如何在Orleans 7.0中创建ClusterClient?

小智 5

您可以使用HostBuilder.UseOrleansClient(). whats new in Orleans此链接中也对此进行了描述: Whats new in Orleans