Skip to content

Instantly share code, notes, and snippets.

@jtaubensee
Last active May 23, 2016 23:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jtaubensee/abfa90bdc10db9d07d02b79463c36b6c to your computer and use it in GitHub Desktop.
Save jtaubensee/abfa90bdc10db9d07d02b79463c36b6c to your computer and use it in GitHub Desktop.
Getting Started With Queues C# - Sending Messages
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