352

Downloads

309

Downloads of v 1.0.1

2012-07-18

Last published

ServiceBus.Extensions.PromotedProperties

1.0.1

This package is for use with Service Bus WCF programing model. The extensions enables you to mark parts of your data model [DataContract] as promoted properties. These marked properties are then automatically lifted and promoted in the outgoing BrokeredMessage.

Sample usage:

==========

public class Order

{

public double Amount { get; set; }

[PromotedProperty]

public string ShipCity { get; set; }

}

[ServiceContract]

public interface IOrderService

{

[OperationContract(Name = "SubmitFlat", IsOneWay = true)]

[PropertyPromotionBehavior]

void Submit(double amount, [PromotedProperty] string shipCity);

[OperationContract(IsOneWay = true)]

[PropertyPromotionBehavior]

void Submit(Order order);

}

See following blog post for implementation details.

http://zamd.net/2011/05/25/pubsub-with-wcf-part-2/

To install ServiceBus.Extensions.PromotedProperties, run the following command in the Package Manager Console

PM> Install-Package ServiceBus.Extensions.PromotedProperties

Owners

Authors

zuahmed

Tags

Dependencies

Version History

Version Downloads Last updated
ServiceBus.Extensions.PromotedProperties 1.0.0 43 Wednesday, July 18 2012