-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathLambdaInterfaceAttribute.cs
34 lines (31 loc) · 1.26 KB
/
LambdaInterfaceAttribute.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
using System;
namespace Lambdajection.Framework
{
/// <summary>
/// Build-time only attribute to help determine what interface to apply to a Lambda.
/// </summary>
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)]
internal class LambdaInterfaceAttribute : Attribute
{
/// <summary>
/// Initializes a new instance of the <see cref="LambdaInterfaceAttribute" /> class.
/// </summary>
/// <param name="assemblyName">The assembly the interface is located in.</param>
/// <param name="interfaceName">The name of the interface.</param>
public LambdaInterfaceAttribute(string assemblyName, string interfaceName)
{
AssemblyName = assemblyName;
InterfaceName = interfaceName;
}
/// <summary>
/// Gets the assembly name the lambda parameter delegate assembly.
/// </summary>
/// <value>The name of the assembly where the lambda parameter delegate is located.</value>
public string AssemblyName { get; }
/// <summary>
/// Gets the name of the lambda interface.
/// </summary>
/// <value>The name of the lambda interface.</value>
public string InterfaceName { get; }
}
}