static void Main() { Console.WriteLine("Make sure that local silo is started. Press Enter to proceed ..."); Console.ReadLine(); Console.Write("Enter number of clients: "); var numberOfClients = int.Parse(Console.ReadLine() ?? Environment.ProcessorCount.ToString("D")); Console.Write("Enter number of repeated pings per client (thousands): "); var numberOfRepeatsPerClient = int.Parse(Console.ReadLine() ?? "15"); OrleansClient.Initialize("DevTestClientConfiguration.xml"); benchmark = new Benchmark(numberOfClients, numberOfRepeatsPerClient * 1000); benchmark.Run(); Console.ReadLine(); }
static void Main(string[] args) { AppDomain hostDomain = AppDomain.CreateDomain("OrleansHost1", null, new AppDomainSetup { AppDomainInitializer = InitSilo, AppDomainInitializerArguments = args, }); Console.Write("Enter number of clients: "); var numberOfClients = int.Parse(Console.ReadLine() ?? Environment.ProcessorCount.ToString("D")); Console.Write("Enter number of repeated pings per client (thousands): "); var numberOfRepeatsPerClient = int.Parse(Console.ReadLine() ?? "15"); GrainClient.Initialize("DevTestClientConfiguration.xml"); benchmark = new Benchmark(numberOfClients, numberOfRepeatsPerClient * 1000); benchmark.Run(); Console.ReadLine(); hostDomain.DoCallBack(ShutdownSilo); }