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 System.Collections.Generic; | |
using System.Linq; | |
using System.Windows.Input; | |
using PosApp.Components.Animations; | |
using Xamarin.Forms; | |
namespace Apptivity.Components.Behaviors | |
{ | |
public class FlexLayoutItemTappedBehavior : Behavior<FlexLayout> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
body { | |
font-family: Tahoma, Geneva, sans-serif; | |
} | |
div { | |
display: inline; |
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
var myFactory = MessagingFactory.CreateAsync("", new MessagingFactorySettings { | |
TransportType = TransportType.Amqp | |
}); | |
this.ConnectionString = new ServiceBusConnectionStringBuilder(this.Settings.ConnectionString) { TransportType = settings.TransportType }.ToString(); |
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
NuGet Package Location: https://www.nuget.org/packages/WindowsAzure.ServiceBus/ | |
3.4.1 | |
Build: 3.0.50700.14 | |
• Messaging: fix a bug in the netmessaging protocol where an invalid Sas token can sometimes cause a message sender to leak memory from connection handle, even after sender is closed. (This does not affect Amqp protocol) | |
3.4.0 | |
Build: 3.0.50700.11 | |
• EventHub/Messaging: fixed a bug where some of the Amqp session error are not mapped to MessagingCommunicationException. These are now returned as MessagingCommunicationException. | |
• EventHub: Add ability to receive from EndOfStream. You can now create receiver using EventHubConsumerGroup.EndOfStream as the offset and the receiver will start receiving from the current last offset (at the time of receiver creation). |
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
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); |
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
RuleAction action = ProcessRuleAction( | |
new SqlRuleAction("SET user.MyNewProperty = 'ABC' + Property(@propertyName)") | |
{ | |
Parameters = | |
{ | |
{ "@propertyName", "MyProperty" } | |
} | |
}); | |
action.Execute(message); |
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
var filter = new SqlFilter(" datetime >= @datetime"); | |
filter.Parameters.Add("@datetime", DateTime.Parse("2016-06-06")); |
NewerOlder