Changing Number of Tiers for Service Layer with Castle

Recently I had some experience with Castle open source project.  I worked on a project where we wanted to switch between two and three tiers in our web application without changing any code.  The idea is that from MVC controller I would like to either call a remove service or just execute the same code …

Continue reading ‘Changing Number of Tiers for Service Layer with Castle’ »

Client Access Policy File and Subdomains

if you worked with Silverlight and WCF, you no doubt are familiar with ClientAccessPlicy.xml.  Recently I found a use case that is not documented in the link above and had me stumped actually.  Our application was hosted on a subdomain, something like my.mysite.com.  I added client access policy file to the root of the domain, …

Continue reading ‘Client Access Policy File and Subdomains’ »

Windows 8 Metro Applications and the Azure (Cont.)

As I mentioned before, I am going to write the last post about integrating Windows 8 Metro applications with Azure. First of, let’s take a look at securing our service with Forms Authentication.  I blogged about that as well, and the only change is that I am going to use REST for authentication service.  Here …

Continue reading ‘Windows 8 Metro Applications and the Azure (Cont.)’ »

Windows 8 Metro Applications and the Azure

I wanted to start a short series of posts, describing my experience in building simple Windows 8 Metro application using XAML, C#, and a service in Azure.  You can find my second post at http://dotnetspeak.com/index.php/2012/05/windows-8-metro-applications-and-the-azure-cont/ The application is very simple, it is a going to be a famous quote app, where the user can get …

Continue reading ‘Windows 8 Metro Applications and the Azure’ »

Creating WCF Service with SOAP/REST Endpoints

In this post I am going to describe a solution to the following problem.  I would like to create a single WCF Service and expose it via a standard SOAP endpoint and REST endpoint using Entity Framework, WCF and WCF REST.  Then I would like to consume it from WinRT from two different view models …

Continue reading ‘Creating WCF Service with SOAP/REST Endpoints’ »

Securing WCF with Forms Authentication

In this post I will describe how to secure a WCF RESTful service with Forms Authentication.  I blogged on WCF many a times, but usually skipped right over security aspects of the service.  I will go into sufficient (hopefully) level of details now. The idea of having an un-secured service on the internet is not …

Continue reading ‘Securing WCF with Forms Authentication’ »

Getting Started with WCF Services in WinRT

I have been learning WInRT in my “spare time” since for a while now. My big interest is working with data in Metro style applications for Windows 8. In this post I will describe step-by-step instructions of creating a WinRT application that is using WCF Service. I am going to use XAML application. To get …

Continue reading ‘Getting Started with WCF Services in WinRT’ »

VS Live Orlando 2011

As I mentioned before, I presented at VS Live conference in Orlando, FL Thursday, 12/08/2011. I presented the following two talks Working with Data on Windows Phone 7 I will talk about various approaches to work with data on Windows Phone 7. I will cover all major concepts, such as local storage, OData/WCF Data Services …

Continue reading ‘VS Live Orlando 2011’ »

How to Improve Performance of CSLA for Silverlight

CSLA for Silverlight is using MobileFormatter class to serialize and de-0serialize the data that if sent across the wire during client/server communications.  General flow of the serialization process is as follows.  Each object that implements IMobileObject is being asked by mobile formatter to serialize its data into a list of SerializationInfo objects.  That list maintains …

Continue reading ‘How to Improve Performance of CSLA for Silverlight’ »