Service Bus – SDK 20 updates

Download Report

Transcript Service Bus – SDK 20 updates

QueueClient queueClient = QueueClient.Create("myQ");
queueClient.OnMessage((message) =>
{
//process message
});
QueueClient queueClient = QueueClient.Create("myQ");
var message = queueClient.Peek(); // does not lock the message
var message = queueClient.Peek(fromSequenceNumber: 4); //specific starting point
var messages = queueClient.PeekBatch(messageCount: 10); // supports batching
QueueDescription qd = namespaceManager.GetQueue("myQ");
qd.Status = EntityStatus.Disabled; //all operations blocked
qd.Status = EntityStatus.SendDisabled; //can continue to de-queue
qd.Status = EntityStatus.ReceiveDisabled; //can continue to en-queue
qd.Status = EntityStatus.Active; //all operations allowed
namespaceManager.UpdateQueue(qd);
TopicDescription topicDescription = new TopicDescription("myTopic");
topicDescription.AutoDeleteOnIdle = TimeSpan.FromMinutes(30);
namespaceManager.CreateTopic(topicDescription);
QueueClient queueClient = QueueClient.Create("myQ");
await queueClient.SendAsync(currentOrder);
Authentication and Security
Azure Portal updates
http://msdn.microsoft.com/en-us/library/windowsazure/jj856298.aspx
Service Bus SDK 2.0 Release notes
What’s new in SDK 2.0
Documentation
Subscribe!
Tutorials
Samples