Sticky Azure WCF service roles

In general, sticky connectivity should be avoided when creating Azure-based services. However, there are situations, e.g. migration of a legacy application which relies on stickiness where it would be good to be able to support it. Here is a solution to providing stickiness to WCF services hosted in Azure. The solution is based on the…

0

Azure: post-deployment updates

Here are some techniques to dynamically modify a running Azure application. They all rely on using blob storage as source of modification and presume that the application was originally written to use these changes: 1. New/changed Silverlight applications You can store your Silverlight xaps in blob storage and reference them from pages served by a…

1

Dynamic branding for Azure web-roles

Here is an approach to providing ASP.NET server-side customization data post-deployment in Azure. It is particularly applicable to multi-tenant solutions, where individual users may need to be served pages using different master pages, user controls, html pages, themes, etc. It is also applicable to a single-tenant solution. The common factor is the ability to provide…

0

Silverlight and basic authentication

Silverlight client does not support TransportCredentialOnly to enable Basic authentication. Here is some code to add the basic authentication http header to a standard Silverlight WCF proxy:                 ServiceReference1.ServiceClient svc = new ServiceReference1.ServiceClient(); // binding, new EndpointAddress(“any.txt://deadend.com”));            svc.GetDataUsingDataContractCompleted += (s, a) =>     …

0

Custom line caps in WPF

The attached project contains a custom element (FrameworkElement-derived), which allows definition of line paths (straight lines, Bezier curves, etc.) with custom-defined line caps. The following graphic contains two lines: a straight line with an arrow and filled rectangle at either end, and an irregular path with a circle and and arrow. (Note that this is…

1