-
Notifications
You must be signed in to change notification settings - Fork 263
/
ActivityTriggerAttribute.cs
35 lines (33 loc) · 1.14 KB
/
ActivityTriggerAttribute.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
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
using System;
using System.Diagnostics;
using Microsoft.Azure.WebJobs.Description;
namespace Microsoft.Azure.WebJobs
{
/// <summary>
/// Trigger attribute used for durable activity functions.
/// </summary>
[AttributeUsage(AttributeTargets.Parameter)]
[DebuggerDisplay("{Activity}")]
#if NETSTANDARD2_0
#pragma warning disable CS0618 // Type or member is obsolete
[Binding(TriggerHandlesReturnValue = true)]
#pragma warning restore CS0618 // Type or member is obsolete
#else
[Binding]
#endif
public sealed class ActivityTriggerAttribute : Attribute
{
/// <summary>
/// Gets or sets the name of the activity function.
/// </summary>
/// <value>
/// The name of the activity function or <c>null</c> to use the function name.
/// </value>
#pragma warning disable CS0618 // Type or member is obsolete
[AutoResolve]
#pragma warning restore CS0618 // Type or member is obsolete
public string Activity { get; set; }
}
}