Questions tagged [message-handlers]
73 questions
1
vote
1 answer
SCIP 3.2.0 doesn't replace message handler
I want the SCIP callable to print all messages to stderr (using it as a flatzinc solver). I've tried
SCIP_DECL_MESSAGEWARNING(printMsg) {
cerr << msg << flush;
}
...
SCIP_MESSAGEHDLR* pHndl=0;
SCIP_CALL ( SCIPmessagehdlrCreate (…

glebB
- 23
- 5
1
vote
1 answer
NServicebus Generic MessageHandler not invoked
I am currently developing a sample project where I use NServiceBus in the back-end to publish events. The back-end is then supposed to be handling its own events through a set of handlers. This works fine when I implement one specific handler for…

Wim.van.Gool
- 1,290
- 1
- 10
- 19
1
vote
2 answers
How to understand Erlang's receive statement?
I am new to Erlang, so please go easy on me.
I am confused as to how a receive statement is executed in erlang, for instance:
loop() ->
receive
MessageA -> handlerA();
MessageB -> handlerB()
end
If a MessageA is received, and…

NeoWang
- 17,361
- 24
- 78
- 126
1
vote
1 answer
Implementing Message Handlers in MVC 6
I have current API (web api 2) project that has a number of message handlers in use, some run for every request (checking to make sure the request is https and the request is coming from an authorised client) and some that run on specific routes…

Gaz
- 1,249
- 3
- 19
- 37
1
vote
1 answer
MessageHandler for Julia
I'm looking for a message handler for Julia, because I want to integrate it in a bigger project with other services. The other services are using RabbitMQ, but I have not been able to find any RabbitMQ or ActiveMQ drivers for Julia.
Is anyone aware…

Paul
- 1,325
- 2
- 19
- 41
1
vote
1 answer
Spring Integration AbstractReplyProducingMessageHandler doInit vs onInit
I am refactoring some code from Spring Integration 2.x to 4.x and have come across a compile error in a handler that extends AbstractReplyProducingMessageHandler.
The onInit method on that Abstract Class is final, yet my legacy code overrides it…

Stephen McConnell
- 64
- 2
- 9
1
vote
1 answer
Is there a way to get the handler function that a control is mapped to in an MFC application?
Lets say I have an MFC application with a button control on it. Is there a way to retrieve that function that OON_BN_CLICKED maps it to? I know CWnd has a GetDlgItem function which will return a pointer to a control. Is there a way to get the…

Amre
- 1,630
- 8
- 29
- 41
1
vote
0 answers
MVC static files not going through custom handler
I have an MVC/Web API, NET4.5 application. I created my own custom handler like so:
public class MyMessageHandler : DelegatingHandler
{
protected async override Task SendAsync(HttpRequestMessage request, …

mwill
- 424
- 7
- 21
0
votes
2 answers
HttpMessagehandler in a weatherforecast
I am trying to implement the HttpMessageHandler in the weather forecast example for ASP.NET Core Web API.
Basically I want a HttpMessageHandler class to intercept the HttpRequest before it hits the controller and again before sending the response to…

codingjoe
- 707
- 5
- 15
- 32
0
votes
0 answers
bot not responding to specific message using python-telegram bot
The issue is when I want to call the '/cancel' command to my bot is it doesn't respond.I tried logging the messages sent and received to see what is going wrong.it seems like the messages aren't being received to the bot
.
Here is my code
from…

Yarik
- 1
0
votes
0 answers
How to stop one Python message handler execution if another one handler started?
I'm making a bot that sends messages to users 2 times a day on topic they choose. But I also want users to have an opportunity to change the topic. That's why I need to make one message handler (that sends messages to users) stop if user pushes the…

Daria
- 1
0
votes
0 answers
Can't find the right name in dictionary and also prints the last value from dictionary
I'm writing the telegram bot, currently I'm doing the buttons which handles the text, if you press the button it's supposed to open the recipe from the dictionary with the name which is the same with the button name. I have over hundreds of recipes,…

MAYER
- 1
- 1
0
votes
1 answer
Is there any way to send an alert message (callback.answer(text, show_alert=True) without getting a callback data from an inline button?
I know that the alert-message can only be received if the user clicks on the inline button and sends the callback data to the bot. But I want an alarm message to be sent if, say, I wrote the wrong message in bot's chat. In this case, my messages are…

Марсель Юлдашев
- 1
- 1
0
votes
0 answers
"message not found" error in aiogram when i try to edit the message
`I have a telegram bot that, when pressing the inline "select" button, changes the reply markup of this message (removes the "select" button so that the user does not spam it) and sends the user a new message with an inline "cancel" button. When the…

Марсель Юлдашев
- 1
- 1
0
votes
0 answers
How to share data between Http server Message handler and Http client message Handler using In - memory Cache
I am working with dotnet 6 web api . I am trying to implement the Http Message handlers both from server side and client side . I wanted a way to share the data between the two Message Handlers using some Local storage .
I know that adding data to…

Tushar SHAILY
- 11
- 1