-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCustomResourceProviderAttribute.cs
More file actions
27 lines (25 loc) · 1.08 KB
/
CustomResourceProviderAttribute.cs
File metadata and controls
27 lines (25 loc) · 1.08 KB
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
using System;
using System.Diagnostics;
using Lambdajection.Framework;
namespace Lambdajection.Attributes
{
/// <summary>
/// Class attribute for Custom Resource Providers. Adding this attribute to a class generates a Run method and LambdaConfigurator
/// subclass. This attribute cannot be accessed using reflection - it is only present at build time.
/// </summary>
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)]
[Conditional("CodeGeneration")]
[LambdaHost("Lambdajection.CustomResource", "CustomResourceLambdaHost")]
[LambdaInterface("Lambdajection.CustomResource", "ICustomResourceProvider")]
public class CustomResourceProviderAttribute : LambdaAttribute
{
/// <summary>
/// Initializes a new instance of the <see cref="CustomResourceProviderAttribute" /> class.
/// </summary>
/// <param name="startup">The type of startup class to use for the custom resource provider.</param>
public CustomResourceProviderAttribute(Type startup)
: base(startup)
{
}
}
}