Пример #1
0
        //------------------------------------------------------------------------------
        object GetPluginInternally(Type pluginInterfaceType)
        {
            lock (s_lockObject)
            {
                object plugin = null;

                bool exist = m_plugins.TryGetValue(pluginInterfaceType, out plugin);
                if (!exist)
                {
                    plugin = InternalConfiguration.GetPluginHelper(pluginInterfaceType, this);
                    m_plugins.Add(pluginInterfaceType, plugin);
                }

                return(plugin);
            }
        }
Пример #2
0
        //------------------------------------------------------------------------------
        public static void ThrowNotImplementedForEvaluation(string methodName)
        {
            var exc = InternalConfiguration.GetNotImplementedForEvaluationException(methodName);

            throw exc;
        }