src/Microsoft.Azure.WebJobs/AutoResolveAttribute.cs (14 lines of code) (raw):
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
using System;
namespace Microsoft.Azure.WebJobs.Description
{
/// <summary>
/// Attribute used to indicate that a binding attribute property should have
/// automatic resolution of {} and %% binding expressions applied.
/// </summary>
[AttributeUsage(AttributeTargets.Property)]
public sealed class AutoResolveAttribute : Attribute
{
/// <summary>
/// Initializes a new instance of the <see cref="AutoResolveAttribute"/> class.
/// </summary>
public AutoResolveAttribute()
{
}
/// <summary>
/// Gets or sets a type to use for runtime binding resolution. That type must derive from IResolutionPolicy, found
/// in the Microsoft.Azure.WebJobs.Host assembly.
/// </summary>
public Type ResolutionPolicyType { get; set; }
/// <summary>
/// Gets or sets a default value if the property is empty.
/// The default value only has access to the {sys} binding data.
/// </summary>
public string Default { get; set; }
}
}