コード例 #1
0
        /// <summary>
        /// Load an module
        /// </summary>
        /// <param name="module">Module that you want to load</param>
        public void LoadModule([NotNull] EssModule module)
        {
            Preconditions.IsTrue(RunningModules.Contains(module), "This module already loaded");

            module.Load();
            RunningModules.Add(module);
        }
コード例 #2
0
        /// <summary>
        /// Load an module
        /// </summary>
        /// <param name="module">Module that you want to load</param>
        public void LoadModule(EssModule module)
        {
            Preconditions.NotNull(module, "Module cannot be null");
            Preconditions.IsTrue(RunningModules.Contains(module), "This module already loaded");

            module.Load();
            RunningModules.Add(module);
        }
コード例 #3
0
        /// <summary>
        /// Load an module 
        /// </summary>
        /// <param name="module">Module that you want to load</param>
        public void LoadModule( EssModule module )
        {
            Preconditions.NotNull( module, "Module cannot be null" );
            Preconditions.IsTrue( RunningModules.Contains( module ), "This module already loaded" );

            module.Load();
            RunningModules.Add( module );
        }