-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathLambdaHostAttribute.cs
35 lines (32 loc) · 1.23 KB
/
LambdaHostAttribute.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
using System;
namespace Lambdajection.Framework
{
/// <summary>
/// Build-time only attribute to help determine what lambda host to use
/// for an attribute.
/// </summary>
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)]
internal class LambdaHostAttribute : Attribute
{
/// <summary>
/// Initializes a new instance of the <see cref="LambdaHostAttribute" /> class.
/// </summary>
/// <param name="assemblyName">The assembly the host is located in.</param>
/// <param name="className">The name of the host class.</param>
public LambdaHostAttribute(string assemblyName, string className)
{
AssemblyName = assemblyName;
ClassName = className;
}
/// <summary>
/// Gets the assembly name the lambda host class is located in.
/// </summary>
/// <value>The name of the assembly where the lambda host class is located.</value>
public string AssemblyName { get; }
/// <summary>
/// Gets the name of the lambda host class.
/// </summary>
/// <value>The name of the lambda host class.</value>
public string ClassName { get; }
}
}