You can have a look at https://github.com/MassTransit/MassTransit-AzureServiceBus
Create a message assembly, with your message as an interface.
From your worker application you do:
bus.Publish<MyInterface>(new Impl{ Date = "Hello World })
From your local application you do configure a subscriber:
var bus = ServiceBusFactory.New(sbc=> {
sbc.Subscribe(s => s.Consumer<MyConsumer>())
sbc.ReceiveFromComponents("owner", "bjOAWQJalkmd9LKas0lsdklkdw4mAHwKZUJ1jKwTLdc=",
"myNamespace", "my-application");
sbc.UseAzureServiceBusRouting();
})
Here's the consumer:
class MyConsumer : Consumes<MyInterface>.All {
public void Consume(MyInterface message) {
}
}
Now you have pub-sub with push set up and MassTransit will handle the boring details for you.