Last active
May 23, 2016 23:55
-
-
Save jtaubensee/abfa90bdc10db9d07d02b79463c36b6c to your computer and use it in GitHub Desktop.
Getting Started With Queues C# - Sending Messages
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using Microsoft.ServiceBus.Messaging; | |
namespace GettingStartedWithQueues | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var connectionString = ""; | |
var queueName = "samplequeue"; | |
var client = QueueClient.CreateFromConnectionString(connectionString, queueName); | |
var message = new BrokeredMessage("This is a test message!"); | |
client.Send(message); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment