azureservicebus

Deserialize strongly typed object from Azure Service Bus Queue (v1) using BrokeredMessage

不想你离开。 提交于 2019-12-11 00:15:17
问题 for whatever reason I can't seem to figure out how to pull my object out of my queue and deserialize it back into what it was placed into it as (An AccountEventDTO ). Azure function successfully placing object into queue: [FunctionName("AccountCreatedHook")] public static async Task<HttpResponseMessage> Run([HttpTrigger(AuthorizationLevel.Function, "post", Route = null)]HttpRequestMessage req, TraceWriter log, [ServiceBus("topic-name", Connection = "BusConnectionString", EntityType =

Keyed Lock in .Net

余生长醉 提交于 2019-12-10 23:29:07
问题 I have a Azure Service Bus queue where I'm receiving a range from 1 to 10 messages with the same "key". One of these messages needs to be processed with a long running operation. After it's complete, the database will be updated and the other messages will check it. However, in the mean time, the other messages will be re-queued so that the process isn't lost. But the main point is that this long running operation CANNOT be ran at the same time for the same key, and shouldn't be ran multiple

Values from local.settings.json in Azure Functions

这一生的挚爱 提交于 2019-12-10 22:53:43
问题 I've created an Azure function that looks like this (actually, the Microsoft template did most of the work!): [FunctionName("Function1")] public static void Run([ServiceBusTrigger("%queue-name%", AccessRights.Listen)]string myQueueItem, TraceWriter log) { log.Info($"C# ServiceBus queue trigger function processed message: {myQueueItem}"); } My local.settings.json looks like this: { "IsEncrypted": false, "Values": { "AzureWebJobsStorage": "..", "AzureWebJobsDashboard": "..",

Validating an expired JWT token behind the servicebus

假如想象 提交于 2019-12-10 19:57:42
问题 I have a web API service that allows a user to create a new resource like: POST /api/resource . The service then puts the creation request on a service bus and responds with HTTP 202 Accepted . A background process picks up the message from service bus and calls the data access layer to create the resource. However, in order to enforce access control, the data access layer needs to know who the user is to determine whether he/she is allowed to create that resource. I cannot move this

Accessing Azure Service Bus with Apache Camel?

柔情痞子 提交于 2019-12-10 18:06:26
问题 How can you access the Azure Service Bus using Apache Camel using Camel as a standalone Java application? 回答1: If you are trying to access Azure Service Bus using Apache Camel you can do so by using the Camel AMQ libraries. You can use the following Maven dependencies in case of you are using Maven: <dependencyManagement> <dependencies> <dependency> <groupId>org.apache.camel</groupId> <artifactId>camel-parent</artifactId> <version>2.17.6</version> <scope>import</scope> <type>pom</type> <

How to purge messages for Service Bus Topic Subscription

a 夏天 提交于 2019-12-10 17:14:08
问题 Just wondering the best way (even if via Portal, Powershell, or C#) to purge the messages off of a Service Bus Topic's Subscription. Imagine we have a topic with 4 subscriptions, and we only want to purge the messages from one of the subscriptions. I have a feeling the only way may be to read the messages in a while loop, but hoping for something better. UPDATE: Apart from using code, you can use the Server Explorer as suggested in the answer - right click subscription and purge messages: 回答1

AMQP V1.0 Client for .NET

▼魔方 西西 提交于 2019-12-10 16:33:33
问题 I am looking into using a product such as RabbitMQ or ActiveMQ. I see that there is, to a certain extent, a level of support in these products for AMQP v1.0. However, I am struggling to find a client for using AMQP 1.0 with .NET. So far the only one I have come across is Apache Qpid. However, having to install all its dependencies along with building it all rather than just using something like NuGet to obtain the client library all seems a bit cumbersome and doesn't give me confidence in

Using Azure Service Bus in local

[亡魂溺海] 提交于 2019-12-10 12:37:14
问题 I am working with Azure Service Bus Topics and Subscriptions. It's being used to send control messages across the application. The message listeners (subscribers) are running in a worker role and they are picking up the messages and processing the request. Each message in the bus can be picked up by only once, even if there are multiple listeners running simultaneously. There is no issue in using the Service Bus; however we are facing some issues while debugging/testing the application in

How to send messages to Azure Service Bus over Port 80?

爷,独闯天下 提交于 2019-12-10 12:16:35
问题 As per I know Azure Service bus uses port 9350, 9353 etc. to send messages. In my organization because of firewall policy we can't open these ports. So whenever I try to send messages to my queue in Azure I get error saying No DNS entries exist for host mycloudsevice.servicebus.windows.net". Is there a way I can send these over port 80/443, as they are always open? Let me know if any examples or code changes I can do. 回答1: You can force the Service Bus library to use HTTP by declaring the

azure notification hubs - app uninstall

北城以北 提交于 2019-12-10 11:17:44
问题 I would like to use Azure Notification Hubs to send push notifications to users of my app running across iOS, Android and Windows Phone. I have managed to get the basics working but I don't know how to manage the App uninstall story. On starting, the mobile app will call my Identity Svc to get an Auth Token. It then calls its Platform Notification service (eg Google Cloud Messaging, APNS) to get a PNS Token. After persisting the token to local storage it will call a back-end Contact Svc to