Пример #1
0
        public bool Run()
        {
            bool ok = false;

            try
            {
                siloHost.InitializeOrleansSilo();

                ok = siloHost.StartOrleansSilo();

                if (ok)
                {
                    Console.WriteLine(string.Format("Successfully started Orleans silo '{0}' as a {1} node.", siloHost.SiloName, siloHost.SiloType));
                }
                else
                {
                    throw new SystemException(string.Format("Failed to start Orleans silo '{0}' as a {1} node.", siloHost.SiloName, siloHost.SiloType));
                }
            }
            catch (Exception exc)
            {
                siloHost.ReportStartupError(exc);
                var msg = string.Format("{0}:\n{1}\n{2}", exc.GetType().FullName, exc.Message, exc.StackTrace);
                Console.WriteLine(msg);
            }

            return(ok);
        }
Пример #2
0
 static void InitSilo(string[] args)
 {
     siloHost = new OrleansSiloHost("test");
     siloHost.ConfigFileName = "DevTestServerConfiguration.xml";
     siloHost.DeploymentId = "1";
     siloHost.InitializeOrleansSilo();
     var ok = siloHost.StartOrleansSilo();
     if (!ok) throw new SystemException(string.Format("Failed to start Orleans silo '{0}' as a {1} node.", siloHost.SiloName, siloHost.SiloType));
 }
Пример #3
0
        public void Start()
        {
            host = new OrleansSiloHost(Dns.GetHostName())
            {
                ConfigFileName = "ServerConfiguration.xml"
            };

            host.InitializeOrleansSilo();
            host.StartOrleansSilo();
            host.LoadOrleansConfig();
        }
Пример #4
0
        static void InitSilo(string[] args)
        {
            siloHost = new OrleansSiloHost("Primary");
            siloHost.ConfigFileName = "DevTestServerConfiguration.xml";
            siloHost.DeploymentId   = "1";
            siloHost.InitializeOrleansSilo();
            var ok = siloHost.StartOrleansSilo();

            if (!ok)
            {
                throw new SystemException(string.Format("Failed to start Orleans silo '{0}' as a {1} node.", siloHost.SiloName, siloHost.SiloType));
            }
        }
Пример #5
0
        static void Start(string[] args)
        {
            var serverConfigFileName = ConfigurationFilePath("OrleansServerConfigurationForTesting.xml");
            host = new OrleansSiloHost(Dns.GetHostName()) { ConfigFileName = serverConfigFileName };

            host.LoadOrleansConfig();
            host.InitializeOrleansSilo();

            host.Config.Globals.ReminderServiceType =
                GlobalConfiguration.ReminderServiceProviderType.ReminderTableGrain;

            host.StartOrleansSilo();
        }
Пример #6
0
        static void Start(string[] args)
        {
            var serverConfigFileName = ConfigurationFilePath("OrleansServerConfigurationForTesting.xml");

            host = new OrleansSiloHost(Dns.GetHostName())
            {
                ConfigFileName = serverConfigFileName
            };

            host.LoadOrleansConfig();
            host.InitializeOrleansSilo();

            host.Config.Globals.ReminderServiceType =
                GlobalConfiguration.ReminderServiceProviderType.ReminderTableGrain;

            host.StartOrleansSilo();
        }
Пример #7
0
 public bool Start()
 {
     _host.LoadOrleansConfig();
     _host.InitializeOrleansSilo();
     return(_host.StartOrleansSilo());
 }