示例#1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="PartImportEngine"/> class.
        /// </summary>
        /// <param name="repository">The object that stores information about all the available parts and part groups.</param>
        /// <exception cref="ArgumentNullException">
        ///     Thrown if <paramref name="repository"/> is <see langword="null" />.
        /// </exception>
        public PartImportEngine(ISatisfyPluginRequests repository)
        {
            {
                Lokad.Enforce.Argument(() => repository);
            }

            m_Repository = repository;
        }
示例#2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="PartImportEngine"/> class.
        /// </summary>
        /// <param name="repository">The object that stores information about all the available parts and part groups.</param>
        /// <exception cref="ArgumentNullException">
        ///     Thrown if <paramref name="repository"/> is <see langword="null" />.
        /// </exception>
        public PartImportEngine(ISatisfyPluginRequests repository)
        {
            {
                Lokad.Enforce.Argument(() => repository);
            }

            m_Repository = repository;
        }
示例#3
0
        /// <summary>
        /// Initializes a new instance of the <see cref="GroupImportEngine"/> class.
        /// </summary>
        /// <param name="repository">The object that stores information about all the available parts and part groups.</param>
        /// <param name="partImportEngine">The object that matches part imports with part exports.</param>
        /// <exception cref="ArgumentNullException">
        ///     Thrown if <paramref name="repository"/> is <see langword="null" />.
        /// </exception>
        /// <exception cref="ArgumentNullException">
        ///     Thrown if <paramref name="partImportEngine"/> is <see langword="null" />.
        /// </exception>
        public GroupImportEngine(ISatisfyPluginRequests repository, IConnectParts partImportEngine)
        {
            {
                Lokad.Enforce.Argument(() => repository);
                Lokad.Enforce.Argument(() => partImportEngine);
            }

            m_Repository       = repository;
            m_PartImportEngine = partImportEngine;
        }
示例#4
0
        /// <summary>
        /// Initializes a new instance of the <see cref="GroupImportEngine"/> class.
        /// </summary>
        /// <param name="repository">The object that stores information about all the available parts and part groups.</param>
        /// <param name="partImportEngine">The object that matches part imports with part exports.</param>
        /// <exception cref="ArgumentNullException">
        ///     Thrown if <paramref name="repository"/> is <see langword="null" />.
        /// </exception>
        /// <exception cref="ArgumentNullException">
        ///     Thrown if <paramref name="partImportEngine"/> is <see langword="null" />.
        /// </exception>
        public GroupImportEngine(ISatisfyPluginRequests repository, IConnectParts partImportEngine)
        {
            {
                Lokad.Enforce.Argument(() => repository);
                Lokad.Enforce.Argument(() => partImportEngine);
            }

            m_Repository = repository;
            m_PartImportEngine = partImportEngine;
        }