Esempio n. 1
0
        public static void Main(string[] args)
        {
            var client = new OrleansClient.Client();

            client.Connect(3).Wait();
            CreateWebHostBuilder(args, client).Build().Run();
        }
Esempio n. 2
0
 public static IWebHostBuilder CreateWebHostBuilder(string[] args, OrleansClient.Client client) =>
 WebHost.CreateDefaultBuilder(args)
 .UseStartup <Startup>().ConfigureServices(services => services.AddSingleton <IClusterClient>(client.ClusterClient));