Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using Orleans.Runtime.Host;
- namespace Silo
- {
- class Program
- {
- private static SiloHost _siloHost;
- static void Main(string[] args)
- {
- _siloHost = new SiloHost(System.Net.Dns.GetHostName())
- {
- ConfigFileName = "OrleansConfiguration.xml"
- };
- _siloHost.InitializeOrleansSilo();
- var start = _siloHost.StartOrleansSilo();
- if (!start)
- {
- throw new SystemException(String.Format("Failed to start Orleans silo '{0}' as a {1} node",
- _siloHost.Name, _siloHost.Type));
- }
- Console.WriteLine("Silo is running...");
- Console.ReadLine();
- }
- }
- }
Add Comment
Please, Sign In to add comment