-
Notifications
You must be signed in to change notification settings - Fork 4.6k
/
ParameterImportConventionBuilder.cs
35 lines (32 loc) · 1.19 KB
/
ParameterImportConventionBuilder.cs
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
26
27
28
29
30
31
32
33
34
35
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
namespace System.Composition.Convention
{
/// <summary>
/// Used when configuring a <see cref="PartConventionBuilder{T}"/>. Used only
/// in expressions, instances of this type are never created.
/// </summary>
public abstract class ParameterImportConventionBuilder
{
private ParameterImportConventionBuilder() { }
/// <summary>
/// Import with contract <typeparamref name="T"/>.
/// </summary>
/// <typeparam name="T">The type of the parameter.</typeparam>
/// <returns>The imported instance.</returns>
public T Import<T>()
{
return default;
}
/// <summary>
/// Import with contract <typeparamref name="T"/>.
/// </summary>
/// <param name="configure">Configuration for the import.</param>
/// <typeparam name="T">The type of the parameter.</typeparam>
/// <returns>The imported instance.</returns>
public T Import<T>(Action<ImportConventionBuilder> configure)
{
return default;
}
}
}