Share via


DurableTaskAttribute Class

Definition

Indicates that the attributed class represents a durable task.

[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false, Inherited=false)]
public sealed class DurableTaskAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false, Inherited=false)>]
type DurableTaskAttribute = class
    inherit Attribute
Public NotInheritable Class DurableTaskAttribute
Inherits Attribute
Inheritance
DurableTaskAttribute
Attributes

Remarks

This attribute is meant to be used on class definitions that derive from TaskOrchestrator<TInput,TOutput> or TaskActivity<TInput,TOutput>. It is used specifically by build-time source generators to generate type-safe methods for invoking orchestrations or activities.

Constructors

DurableTaskAttribute(String)

Initializes a new instance of the DurableTaskAttribute class.

Properties

Name

Gets the name of the durable task.

Applies to