blob: feb4097a64ab677423efb0463c6565997f438330 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
// -----------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// -----------------------------------------------------------------------
using System;
using System.ComponentModel.Composition.Primitives;
namespace System.ComponentModel.Composition
{
public class ExportFactory<T, TMetadata> : ExportFactory<T>
{
private readonly TMetadata _metadata;
public ExportFactory(Func<Tuple<T, Action>> exportLifetimeContextCreator, TMetadata metadata)
: base(exportLifetimeContextCreator)
{
this._metadata = metadata;
}
public TMetadata Metadata
{
get { return this._metadata; }
}
}
}
|