change queue name in leave controller
Some checks failed
release-dev / release-dev (push) Failing after 11s
Some checks failed
release-dev / release-dev (push) Failing after 11s
This commit is contained in:
parent
bf97558614
commit
3bf7cba244
2 changed files with 5 additions and 3 deletions
|
|
@ -507,12 +507,13 @@ namespace BMA.EHR.Leave.Service.Controllers
|
|||
var channel = _objectPool.Get();
|
||||
try
|
||||
{
|
||||
channel.QueueDeclare(queue: _realCheckInQueue, durable: true, exclusive: false, autoDelete: false, arguments: null);
|
||||
var queue = _configuration["Rabbit:Queue"] ?? "basic-queue";
|
||||
channel.QueueDeclare(queue: queue, durable: true, exclusive: false, autoDelete: false, arguments: null);
|
||||
var serializedObject = JsonConvert.SerializeObject(checkData);
|
||||
var body = Encoding.UTF8.GetBytes(serializedObject);
|
||||
|
||||
channel.BasicPublish(exchange: "",
|
||||
routingKey: _realCheckInQueue,
|
||||
routingKey: queue,
|
||||
basicProperties: null,
|
||||
body: body);
|
||||
|
||||
|
|
|
|||
|
|
@ -44,7 +44,8 @@
|
|||
"Rabbit": {
|
||||
"Host": "192.168.1.40",
|
||||
"User": "admin",
|
||||
"Password": "Test123456"
|
||||
"Password": "Test123456",
|
||||
"Queue": "bma-checkin-queue"
|
||||
},
|
||||
"Mail": {
|
||||
"Server": "mail.bangkok.go.th",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue