Skip to main content
Filter by
Sorted by
Tagged with
1 vote
0 answers
52 views

I have a typed HttpClient, added to DI like this: builder.Services .AddHttpClient<IExternalApiClient, ExternalApiClient>() .ConfigurePrimaryHttpMessageHandler(() => ...
Eugeniy  Maksimov's user avatar
0 votes
2 answers
101 views

I'm building an HttpClient adapter for a connection to E*Trade. This HttpClient requires a custom message handler that needs to know things about the connection for OAuth. Things like the access token,...
Quark Soup's user avatar
  • 4,783
0 votes
1 answer
93 views

I have a microservice that integrates with a third-party service via API calls. To handle the integration, I've created a typed HttpClient with a HttpMessageHandler registered as a transient service ...
ykh's user avatar
  • 1,837
1 vote
1 answer
1k views

I was under the assumption that webkit.messageHandlers are defined on iOS in a webview context. But when I do an alert of this, I get some kind of "value" that I cannot look into. Can I get ...
wiredmartian's user avatar
0 votes
1 answer
162 views

Coverity sees in the following code that the messageHandler going out of scope, leaks the resource it refers to. "System.Net.Http" Version="4.3.4" .net 6.0 Could you please ...
adriana malea's user avatar
0 votes
1 answer
790 views

I know many people asked this type of question but I believe mine is different because I only encouter the error when trying to run the message async. This is just a project for personal use to try to ...
hidde 's user avatar
-1 votes
1 answer
423 views

I have this registration class as you can see : public static class InternalSymbolServiceRegister { public const string DefaultConfigSectionName = "myService"; public static ...
Ehsan Akbar's user avatar
  • 7,357
1 vote
2 answers
202 views

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 ...
codingjoe's user avatar
  • 840
0 votes
0 answers
344 views

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 ...
Yarik's user avatar
  • 11
1 vote
1 answer
52 views

In my Window_manager.c file I nowhere edit the Value of *wm->actStkSize by hand (!?), however after calling DispatchMessage(&msg); in the RunMessageLoop function, the Value somehow changed from ...
flotschi's user avatar
1 vote
2 answers
916 views

@bot.message_handler(content_types=['text']) def get_text_messages(message): if message.text == "/start": begin = types.InlineKeyboardMarkup() namebutton = types....
sword's user avatar
  • 11
0 votes
1 answer
1k views

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 ...
Марсель Юлдашев's user avatar
1 vote
0 answers
998 views

`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 ...
Марсель Юлдашев's user avatar
0 votes
2 answers
3k views

I need to add a custom header to each http request. To do so, I want to use a message handler and override SendAsync() method like so: public class RequestHandler : DelegatingHandler { ...
Adrian Chiritescu's user avatar
-1 votes
1 answer
222 views

I have a small application that needs to react to a particular device being added or removed from the system. So I listen for WM_DEVICECHANGE using CreateWindowEx() and RegisterDeviceNotification(). ...
emno's user avatar
  • 311
1 vote
0 answers
386 views

I'm trying to create a custom message handler which adds an Authorization header to all requests sent by an HttpClient. In order to compute the value of this header, the path of the request (including ...
jack's user avatar
  • 157
2 votes
2 answers
1k views

I need my telegram bot to forward messages from the private chat to the customer care staff group. I run this code: @bot.message_handler(func=lambda message: message.chat.type=='private') def ...
carcaduno's user avatar
1 vote
1 answer
2k views

I'm creating my first Telegram bot. I want the bot to filter text looking only for URLs, and trigger when is found. For example, if someone types in the chat "www.google.com", I want the bot ...
Sabrani Wodoo's user avatar
0 votes
1 answer
731 views

This project is a recycler view fragment that gets images from flickr and display it. I used loopers and handlers to communicate between the recycler fragment and the downloading thumbnail fragment... ...
Saher Al-Sous's user avatar
0 votes
1 answer
222 views

I have two IntegrationFlows both receive messages from Apache Kafka first IntegrationFlow - in the input channel, Consumer1(concurrency=4) reads topic_1 second IntegrationFlow - in the input channel, ...
Alkone Falkone's user avatar
1 vote
1 answer
4k views

From understanding basics of async/await I learned that time.sleep() is a blocking function, which freezes the execution. I tried to check it in this simple message_handler while creating a telegram ...
Duck's user avatar
  • 53
0 votes
1 answer
591 views

I have to write files into multiple subdirectories based on a header attribute. Not getting a way to configure it in Spring Integration. @Bean @ServiceActivator(inputChannel = "processingChannel&...
amarzeet's user avatar
0 votes
0 answers
279 views

import logging from telegram.ext import Updater, CommandHandler, MessageHandler, Filters logging.basicConfig(format='%(asctime)s - %(name)s - %(levelname)s - %(message)s', level=logging.INFO) ...
Mahima Agrawal's user avatar
1 vote
1 answer
4k views

I've written a telegram bot using aiogram. I want to restrict it so certain users can access it. I've read this question, which has answers for different telegram bot libraries. But for the aiogram, ...
Danial's user avatar
  • 444
1 vote
1 answer
94 views

Let's consider this code fragment : BEGIN_MESSAGE_MAP(CMyCheckBox, CButton) ON_WM_MOUSEMOVE() END_MESSAGE_MAP() void CMyCheckBox::OnMouseMove(UINT nFlags, CPoint point) { // here my code .......
Landstalker's user avatar
  • 1,368
0 votes
1 answer
108 views

I have a service method that I call by a MessageHandler and by a Controller Action: class ReceiptService { public function myMethod() { // ... $html = $this->twig->...
LucileDT's user avatar
  • 682
1 vote
1 answer
1k views

I'm just trying to learn a little bit of C++ and wrote a few lines that do nothing but open a window. I've added a Message Handler too and by clicking the [X] on my window it closes as its supposed to....
user287331's user avatar
0 votes
1 answer
703 views

Thanks in advance. Actually, I wan to implement JWT refresh token in Angular 7 Application using HTTP Interceptor. I've implemented JWT using HTTP Message Handler (DelegatingHandler). On Unauthorized ...
Muhammad Hassan's user avatar
0 votes
2 answers
2k views

I need to retrieve all messages in a pgmq. I tried to use *FIRST as a parameter, but api does not return anything. qmhrcvpm(rcvm0200:%size(rcvm0200):'RCVM0200':'*':0: '*FIRST':*...
Arsnow's user avatar
  • 161
1 vote
1 answer
2k views

I see many examples related to spring-integration-file. But I am looking for an example application where it uses spring-integration-jpa to pull data from database using Inbound Channel Adapter and ...
Vicky's user avatar
  • 11
0 votes
1 answer
232 views

I have a project that reads from mongodb and sends that information to the queue. my listener picks up the queue message from cloud. I am able to create a .txt file that inputs all the information ...
Edsel's user avatar
  • 45
2 votes
1 answer
9k views

I´m trying to use the @bot.message_handler with lambda to capture some words in the messages sending in a group with my bot. I see a lot of examples and everybody use a code similar to this: import ...
Alberto Aguilera's user avatar
0 votes
0 answers
26 views

I am using Aspnet webapi2. I want to register a message handler based on the environment. can you please let me know how can i configure the same based on environment. public static class ...
thegautamnayak's user avatar
1 vote
1 answer
2k views

I have a custom handler as below: public class LoggingHandler : DelegatingHandler { public LoggingHandler() { } protected override async Task<HttpResponseMessage> ...
kauschan's user avatar
  • 496
2 votes
0 answers
2k views

I have a fairly old Java 8 / Spring app which provides a REST API. The response is sent in either JSON or XML depending on the Accept Header. So for example application/json-v1 converts the ...
gringogordo's user avatar
  • 2,160
0 votes
0 answers
326 views

I have a program which does API call using HttpClient and overriding DelegatingHandler class to retry request on failure as shown below. class TestHandler { public static void APICallTest() {...
prvn's user avatar
  • 448
0 votes
1 answer
772 views

Before this, I am using SOAPHandler< SOAPMessageContext > to handle the data from webservice. The code as follow: public class MyBillSoapMessageHandler implements SOAPHandler< ...
Panadol Chong's user avatar
1 vote
1 answer
973 views

While using a custom message handler, I keep encountering the following error on the API server side: API Controller:- [RoutePrefix("errors")] public class ErrorController : ApiController { [...
user3352289's user avatar
0 votes
0 answers
691 views

I have requirement to specify MessageHandler in webapi.config file for specific controllers only. So, I have code in webapiconfig.cs file as follows. public static class WebApiConfig { public ...
ghetal's user avatar
  • 403
2 votes
1 answer
347 views

I am currently using NServiceBus6. I am successfully submitting a message from my web api to endpoint which is windows service hosted. Everything works fine in my development environment on my local ...
William's user avatar
  • 317
1 vote
2 answers
1k views

I've got an ASP.NET MVC Web API controller: [HttpPost] public async Task<HttpResponseMessage> Post(HttpRequestMessage req, CancellationToken cancellationToken) {...} And a custom message ...
Howiecamp's user avatar
  • 3,129
1 vote
1 answer
542 views

I am trying to use the Rebus transaction context within my message handler. I have read the documentation here and have seen the sample here, however I do not know how Windsor works. Could somebody ...
Lorenzo's user avatar
  • 29.4k
0 votes
2 answers
3k views

I have an ASP.NET Web API which is hosted on Azure. I have integrated HTTP Message handler to that API. The message handler is getting hit when I am hitting it using AJAX call. I am also sending some ...
Saurabh Verma's user avatar
8 votes
2 answers
3k views

It is possible to add a MessageHandler only for a specific controller that is using Route Attributes? I want to cut the request earlier in the pipeline if it doesn't contain certain headers. I want ...
Florin-Constantin Ciubotariu's user avatar
1 vote
1 answer
350 views

I implemented a Service and I use a Messenger with its handler as a communication bridge. Every time that I start an activity I have to follow these steps: 1) create the service connection private ...
michoprogrammer's user avatar
1 vote
1 answer
750 views

I have a Message Handler in my Web API 2 project which change the url to a different path. Such as url "root/controller/somevalue/detials" will be changed to "root/controller/2/details". Where "...
Tanjeer's user avatar
  • 79
1 vote
1 answer
1k views

I am new to the Spring Integration and I couldn't find any similar post here. Right now I have one messageHandler which calls specific URI and writes to the channel. @Bean @Scope("prototype") ...
Aleksandar Sibincic's user avatar
1 vote
1 answer
1k views

I want to fetch returned data from Web api and save in my database. My Message handler code is here: protected override async Task<HttpResponseMessage> SendAsync( HttpRequestMessage ...
GOPAL SHARMA's user avatar
0 votes
1 answer
2k views

I'm facing the following problem and I found no working solution yet. I have 3 different applications that should communicate with each other: the UI part (1) the backend application (2) the ...
webmonkey's user avatar
  • 1,093
0 votes
1 answer
380 views

All, I am trying to modify the payload of incoming object via the web API. Currently I'm using a custom formatter which inherits from JsonMediaTypeFormatter and overrides the relevant methods. Looks ...
Steven Yates's user avatar
  • 2,490