Skip to content
Branch: master
Find file Copy path
Find file Copy path
2 contributors

Users who have contributed to this file

@mathewc @davidmatson
27 lines (24 sloc) 1.07 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 System.Threading;
using System.Threading.Tasks;
namespace Microsoft.Azure.WebJobs
/// <summary>
/// Interface defining functionality for dynamically binding to WebJobs SDK attributes
/// at runtime.
/// </summary>
/// <remarks>This interface enables imperative binding with attribute information specified at runtime.</remarks>
public interface IBinder
/// <summary>
/// Binds the specified attribute.
/// </summary>
/// <typeparam name="T">The type to bind to.</typeparam>
/// <param name="attribute">The attribute to bind.</param>
/// <param name="cancellationToken">The token to monitor for cancellation requests.</param>
/// <returns>A <see cref="Task"/> that will provide the bound the value.</returns>
Task<T> BindAsync<T>(Attribute attribute, CancellationToken cancellationToken = default(CancellationToken));
You can’t perform that action at this time.