/// <summary>Starts this system</summary>
        public void Start()
        {
            _provider.Init(this);
            ConfigureLoggers();
            LoadExtensions();

            if (_settings.LogDeadLetters > 0)
            {
                _logDeadLetterListener = SystemActorOf <DeadLetterListener>("deadLetterListener");
            }


            if (_settings.LogConfigOnStart)
            {
                _log.Warning(Settings.ToString());
            }
        }
Exemple #2
0
        /// <summary>Starts this system</summary>
        public void Start()
        {
            try
            {
                // Force TermInfoDriver to initialize in order to protect us from the issue seen in #2432
                typeof(Console).GetProperty("BackgroundColor").GetValue(null); // HACK: Only needed for MONO

                RegisterOnTermination(StopScheduler);
                _provider.Init(this);
                LoadExtensions();

                if (_settings.LogDeadLetters > 0)
                {
                    _logDeadLetterListener = SystemActorOf <DeadLetterListener>("deadLetterListener");
                }

                _eventStream.StartUnsubscriber(this);

                WarnIfJsonIsDefaultSerializer();

                if (_settings.LogConfigOnStart)
                {
                    _log.Info(Settings.ToString());
                }
            }
            catch (Exception)
            {
                try
                {
                    Terminate();
                }
                catch (Exception)
                {
                    try { StopScheduler(); }
                    catch
                    {
                        // ignored
                    }
                }
                throw;
            }
        }
Exemple #3
0
        /// <summary>Starts this system</summary>
        public void Start()
        {
            _provider.Init(this);
            ConfigureLoggers();
            LoadExtensions();

            if (_settings.LogDeadLetters > 0)
            {
                _logDeadLetterListener = SystemActorOf <DeadLetterListener>("deadLetterListener");
            }

            _eventStream.StartUnsubscriber(this);

            WarnIfJsonIsDefaultSerializer();

            if (_settings.LogConfigOnStart)
            {
                _log.Warning(Settings.ToString());
            }
        }
Exemple #4
0
        /// <summary>Starts this system</summary>
        public void Start()
        {
            try
            {
                RegisterOnTermination(StopScheduler);
                _provider.Init(this);
                LoadExtensions();

                if (_settings.LogDeadLetters > 0)
                {
                    _logDeadLetterListener = SystemActorOf <DeadLetterListener>("deadLetterListener");
                }

                _eventStream.StartUnsubscriber(this);

                WarnIfJsonIsDefaultSerializer();

                if (_settings.LogConfigOnStart)
                {
                    _log.Warning(Settings.ToString());
                }
            }
            catch (Exception)
            {
                try
                {
                    Terminate();
                }
                catch (Exception)
                {
                    try { StopScheduler(); }
                    catch
                    {
                        // ignored
                    }
                }
                throw;
            }
        }
Exemple #5
0
 public void Init(ActorSystemImpl system)
 {
     _system = system;
     _delegate.Init(system);
 }
 public void Init(ActorSystemImpl system)
 {
     _localActorRefProvider.Init(system);
 }