File: System\ComponentModel\Composition\Hosting\CatalogExportProvider.PartCreatorExport.cs
Web Access
Project: src\src\libraries\System.ComponentModel.Composition\src\System.ComponentModel.Composition.csproj (System.ComponentModel.Composition)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
using System.ComponentModel.Composition.Primitives;
 
namespace System.ComponentModel.Composition.Hosting
{
    public partial class CatalogExportProvider
    {
        internal sealed class PartCreatorExport : FactoryExport
        {
            private readonly CatalogExportProvider _catalogExportProvider;
 
            public PartCreatorExport(CatalogExportProvider catalogExportProvider, ComposablePartDefinition partDefinition, ExportDefinition exportDefinition) :
                base(partDefinition, exportDefinition)
            {
                _catalogExportProvider = catalogExportProvider;
            }
 
            public override Export CreateExportProduct()
            {
                return new NonSharedCatalogExport(_catalogExportProvider, UnderlyingPartDefinition, UnderlyingExportDefinition);
            }
        }
    }
}