Skip to content

Commit

Permalink
[RabbitMQ] Add Javascript Syntax to Headers definition (elsa-workflow…
Browse files Browse the repository at this point in the history
…s#3151)

* Add Javascript Syntax to Headers definition

* Added to send too

* Update RabbitMqMessageReceived.cs
  • Loading branch information
borjaferv authored Jun 23, 2022
1 parent 5d47c00 commit 69f206a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ public class RabbitMqMessageReceived : Activity
Order = 3,
UIHint = ActivityInputUIHints.Dictionary,
DefaultSyntax = SyntaxNames.Json,
SupportedSyntaxes = new[] { SyntaxNames.Json })]
SupportedSyntaxes = new[] { SyntaxNames.Json,SyntaxNames.JavaScript })]

public Dictionary<string, string> Headers { get; set; } = new Dictionary<string, string>();

[ActivityInput(
Expand Down Expand Up @@ -70,4 +71,4 @@ private IActivityExecutionResult ExecuteInternalAsync(ActivityExecutionContext c
return Done();
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public SendRabbitMqMessage(IMessageSenderClientFactory messageSenderClientFactor
Order = 3,
UIHint = ActivityInputUIHints.Dictionary,
DefaultSyntax = SyntaxNames.Json,
SupportedSyntaxes = new[] { SyntaxNames.Json })]
SupportedSyntaxes = new[] { SyntaxNames.Json, SyntaxNames.JavaScript })]
public Dictionary<string, string> Headers { get; set; } = new Dictionary<string, string>();

[ActivityInput(
Expand Down

0 comments on commit 69f206a

Please sign in to comment.