示例#1
0
        static void InitSilo(string[] args)
        {
            siloHost = new SiloHost(System.Net.Dns.GetHostName());
            // The Cluster config is quirky and weird to configure in code, so we're going to use a config file
            siloHost.ConfigFileName = "OrleansConfiguration.xml";

            siloHost.InitializeOrleansSilo();
            var startedok = siloHost.StartOrleansSilo();

            if (!startedok)
            {
                throw new SystemException(String.Format("Failed to start Orleans silo '{0}' as a {1} node",
                                                        siloHost.Name, siloHost.Type));
            }
        }