This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Binding] | |
[AttributeUsage(AttributeTargets.Parameter)] | |
public class RabbitMqTriggerAttribute : Attribute | |
{ | |
public string HostName { get; set; } | |
public string Username { get; set; } | |
public string Password { get; set; } | |
public string Port { get; set; } | |
public string Connection { get; set; } | |
public string QueueName { get; set; } | |
public RabbitMqTriggerAttribute(string queueName) | |
{ | |
QueueName = queueName; | |
} | |
public void LoadRabbitSettings() | |
{ | |
HostName = Environment.GetEnvironmentVariable("HostName"); | |
Username = Environment.GetEnvironmentVariable("HostUsername"); | |
Password = Environment.GetEnvironmentVariable("Password"); | |
Port = Environment.GetEnvironmentVariable("Port"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment