Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
50 lines (43 sloc) 1.79 KB
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
using System;
using Microsoft.Azure.WebJobs.Description;
namespace Microsoft.Azure.WebJobs
{
/// <summary>
/// Attribute used to bind a parameter to a Twilio SMSMessage that will automatically be
/// sent when the function completes.
/// </summary>
[AttributeUsage(AttributeTargets.Parameter | AttributeTargets.ReturnValue)]
[Binding]
public sealed class TwilioSmsAttribute : Attribute
{
/// <summary>
/// Gets or sets an optional string value indicating the app setting to use as the Twilio Account SID,
/// if different than the one specified in the <see cref="Extensions.Twilio.TwilioSmsOptions"/>.
/// </summary>
[AppSetting]
public string AccountSidSetting { get; set; }
/// <summary>
/// Gets or sets an optional string value indicating the app setting to use as the Twilio Auth Token,
/// if different than the one specified in the <see cref="Extensions.Twilio.TwilioSmsOptions"/>.
/// </summary>
[AppSetting]
public string AuthTokenSetting { get; set; }
/// <summary>
/// Gets or sets the message "To" field. May include binding parameters.
/// </summary>
[AutoResolve]
public string To { get; set; }
/// <summary>
/// Gets or sets the message "From" field. May include binding parameters.
/// </summary>
[AutoResolve]
public string From { get; set; }
/// <summary>
/// Gets or sets the message "Body" field. May include binding parameters.
/// </summary>
[AutoResolve]
public string Body { get; set; }
}
}
You can’t perform that action at this time.