Exemple #1
0
        public void Initialize()
        {
            ConfigureFromCanConfigurables();
            InitializeCulture();

            var initializers = new Action[] {
                () => Serialization.Initialize(Container),
                () => Commands.Initialize(Container),
                () => Events.Initialize(Container),
                () => Tasks.Initialize(Container),
                () => Views.Initialize(Container),
                () => Sagas.Initialize(Container),
                () => Frontend.Initialize(Container),
                () => CallContext.Initialize(Container),
                () => ExecutionContext.Initialize(Container),
                () => Security.Initialize(Container),
                () => DefaultStorage.Initialize(Container)
            };

#if (SILVERLIGHT)
            initializers.ForEach(initializer => initializer());
#else
            Parallel.ForEach(initializers, initializator => initializator());
#endif
            ConfigurationDone();
        }
Exemple #2
0
 public override void Initialize()
 {
     m_BoyCharacter.Initialize();
     m_GirlCharacter.Initialize(m_InitAtractivity, m_GoalAtractivity);
     m_Frontend.Initialize();
     m_IsFinished = false;
     m_IsPlaying  = false;
 }
 /// <summary>
 /// Simply call <see cref="DVBFrontend.StopFilters"/> on our <see cref="Frontend"/>.
 /// </summary>
 /// <param name="initialize">Set to re-initialize the frontend.</param>
 public void StopFilters(bool initialize)
 {
     // Check mode
     if (initialize)
     {
         Frontend.Initialize();
     }
     else
     {
         Frontend.StopFilters();
     }
 }
Exemple #4
0
        public void Initialize()
        {
            ConfigureFromCanConfigurables();
            InitializeCulture();

            var initializers = new Action[] {
                () => Serialization.Initialize(Container),
                () => Commands.Initialize(Container),
                () => Container.Get <IEventsConfiguration>().Initialize(Container),
                () => Tasks.Initialize(Container),
                () => Frontend.Initialize(Container),
                () => CallContext.Initialize(Container),
                () => ExecutionContext.Initialize(Container),
                () => Security.Initialize(Container),
                () => Tenancy.Initialize(Container),
                () => DefaultStorage.Initialize(Container)
            };

            Parallel.ForEach(initializers, initializator => initializator());
            ConfigurationDone();
        }