Beispiel #1
0
        /// <summary>
        /// Creates a FactoryInstance.
        /// </summary>
        /// <param name="id">The Destination identity.</param>
        /// <param name="properties">Configuration properties for the destination.</param>
        /// <returns>A FactoryInstance instance.</returns>
		public FactoryInstance CreateFactoryInstance(string id, DestinationProperties properties)
		{
			DotNetFactoryInstance factoryInstance = new DotNetFactoryInstance(this, id, properties);
            if (properties != null)
            {
                factoryInstance.Source = properties.Source;
                factoryInstance.Scope = properties.Scope;
                factoryInstance.AttributeId = properties.AttributeId;
            }
			if( factoryInstance.Scope == null )
				factoryInstance.Scope = FactoryInstance.RequestScope;
			return factoryInstance;
		}