This file contains hidden or 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 = ""; |
This file contains hidden or 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 = ""; |
This file contains hidden or 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
| { | |
| "$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json#", | |
| "contentVersion": "1.0.0.0", | |
| "parameters": { | |
| "serviceBusNamespaceName": { | |
| "type": "string", | |
| "metadata": { | |
| "description": "Name of the EventHub namespace" | |
| } | |
| }, |
This file contains hidden or 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
| var message = new BrokeredMessage(); | |
| message.Properties["datetime"] = DateTime.Now; | |
| var sqlFilter = new SqlFilter("datetime > '2016-06-06'"); |
This file contains hidden or 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
| var filter = new SqlFilter(" datetime >= @datetime"); | |
| filter.Parameters.Add("@datetime", DateTime.Parse("2016-06-06")); |
This file contains hidden or 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
| RuleAction action = ProcessRuleAction( | |
| new SqlRuleAction("SET user.MyNewProperty = 'ABC' + Property(@propertyName)") | |
| { | |
| Parameters = | |
| { | |
| { "@propertyName", "MyProperty" } | |
| } | |
| }); | |
| action.Execute(message); |
This file contains hidden or 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
| static async Task ScheduleMessagesSample(string serviceBusConnectionString) | |
| { | |
| // Set transport type to AMQP | |
| var builder = new ServiceBusConnectionStringBuilder(serviceBusConnectionString); | |
| builder.TransportType = TransportType.Amqp; | |
| // Create queue | |
| NamespaceManager namespaceManager = NamespaceManager.CreateFromConnectionString(builder.ToString()); | |
| QueueDescription queueDescription = new QueueDescription("myqueue") { EnablePartitioning = true }; | |
| namespaceManager.CreateQueue(queueDescription); |
OlderNewer