forked from Azure/azure-functions-dotnet-worker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBlobOutputAttribute.cs
More file actions
33 lines (28 loc) · 1.06 KB
/
BlobOutputAttribute.cs
File metadata and controls
33 lines (28 loc) · 1.06 KB
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
// 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.Functions.Worker.Extensions.Abstractions;
namespace Microsoft.Azure.Functions.Worker
{
public sealed class BlobOutputAttribute : OutputBindingAttribute
{
private readonly string _blobPath;
/// <summary>Initializes a new instance of the <see cref="BlobOutputAttribute"/> class.</summary>
/// <param name="blobPath">The path of the blob to which to bind.</param>
public BlobOutputAttribute(string blobPath)
{
_blobPath = blobPath;
}
/// <summary>
/// Gets the path of the blob to which to bind.
/// </summary>
public string BlobPath
{
get { return _blobPath; }
}
/// <summary>
/// Gets or sets the app setting name that contains the Azure Storage connection string.
/// </summary>
public string? Connection { get; set; }
}
}