Esempio n. 1
0
        /// <summary>
        /// The constructor.
        /// </summary>
        /// <param name="pluginInfo">Test plugin to instantiated on demand</param>
        /// <param name="metadata">Test extension metadata</param>
        public LazyExtension(TestPluginInformation pluginInfo, TMetadata metadata)
        {
            if (metadata == null)
            {
                throw new ArgumentNullException(nameof(metadata));
            }

            this.testPluginInfo     = pluginInfo ?? throw new ArgumentNullException(nameof(pluginInfo));
            this.metadata           = metadata;
            this.isExtensionCreated = false;
        }
Esempio n. 2
0
        /// <summary>
        /// The constructor.
        /// </summary>
        /// <param name="pluginInfo">Test plugin to instantiated on demand.</param>
        /// <param name="metadataType">Metadata type to instantiate on demand</param>
        public LazyExtension(TestPluginInformation pluginInfo, Type metadataType)
        {
            if (pluginInfo == null)
            {
                throw new ArgumentNullException("pluginInfo");;
            }

            if (metadataType == null)
            {
                throw new ArgumentNullException("metadataType");;
            }

            this.testPluginInfo     = pluginInfo;
            this.metadataType       = metadataType;
            this.isExtensionCreated = false;
        }
Esempio n. 3
0
 /// <summary>
 /// The constructor.
 /// </summary>
 /// <param name="pluginInfo">Test plugin to instantiated on demand.</param>
 /// <param name="metadataType">Metadata type to instantiate on demand</param>
 public LazyExtension(TestPluginInformation pluginInfo, Type metadataType)
 {
     this.testPluginInfo     = pluginInfo ?? throw new ArgumentNullException(nameof(pluginInfo));
     this.metadataType       = metadataType ?? throw new ArgumentNullException(nameof(metadataType));
     this.isExtensionCreated = false;
 }