-
Notifications
You must be signed in to change notification settings - Fork 55
/
Copy pathRabbitMQAttribute.cs
33 lines (28 loc) · 1.05 KB
/
RabbitMQAttribute.cs
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.WebJobs.Description;
namespace Microsoft.Azure.WebJobs;
/// <summary>
/// Attribute used to bind a parameter to RabbitMQ output message.
/// </summary>
[AttributeUsage(AttributeTargets.Parameter | AttributeTargets.ReturnValue)]
[Binding]
public sealed class RabbitMQAttribute : Attribute
{
/// <summary>
/// Gets or sets the setting name for RabbitMQ connection URI.
/// </summary>
[ConnectionString]
public string ConnectionStringSetting { get; set; }
/// <summary>
/// Gets or sets the RabbitMQ queue name.
/// </summary>
[AutoResolve]
public string QueueName { get; set; }
/// <summary>
/// Gets or sets a value indicating whether certificate validation should be disabled. Not recommended for
/// production. Does not apply when SSL is disabled.
/// </summary>
public bool DisableCertificateValidation { get; set; }
}