Пример #1
0
        protected override bool DoApplicationAfterInit()
        {
            m_Log.NonNull($"Configured {nameof(m_Log)}").Start();
            m_Instrumentation.NonNull($"Configured {nameof(m_Instrumentation)}").Start();

            App.InjectInto(m_Log);
            m_Log.Start();

            if (m_Log != m_Instrumentation)
            {
                App.InjectInto(m_Instrumentation);
                m_Instrumentation.Start();
            }


            return(base.DoApplicationAfterInit());
        }
Пример #2
0
        protected override bool DoApplicationAfterInit()
        {
            m_Log.NonNull($"Configured {nameof(m_Log)}").Start();
            m_Instrumentation.NonNull($"Configured {nameof(m_Instrumentation)}").Start();

            if (m_LogArchiveGraph != null)
            {
                if (m_LogArchiveGraph is Daemon d)
                {
                    d.StartByApplication();
                }
            }

            App.InjectInto(m_Log);
            m_Log.Start();

            if (m_Log != m_Instrumentation)
            {
                App.InjectInto(m_Instrumentation);
                m_Instrumentation.Start();
            }

            return(base.DoApplicationAfterInit());
        }