In the first part of this article I showed how I’ve been testing code using MEF and a generic base class that is in charge of wiring up the dependencies.
In this part I will focus on how I got WCF to wire up my web service using MEF in what I think is quite an elegant way.
My first requirement was to be able to write a web service that will use dependencies (imports) but that wouldn’t require me to write the composition code in the service class itself. Most of the examples I saw online didn’t provide me with a good way to do that unfortunately.
Until I came across this excellent post by Tim Roberts which shows how to tap into the WCF pipe-line and have your services composed automatically instead of having to do it per service or including wire-up code in your classes.
While the code Tim provided was a great start I thought it wasn’t just right for me. Specifically it was the fact that it required custom code in the Global.asax file which for me was not as elegant as it should be.
So I’ve done a bit more digging into the WCF pipe-line and discovered that I could achieve an elegant, completely configuration-based solution by implementing my own endpoint behavior.
In the end I needed to only create 3 classes to achieve this: EndpointComposedElement, ComposedEndpointBehavior and ComposedInstanceProvider.
Continue reading “Unit Testing, WCF and MEF – Part 2”
The new 2011 Tridion GUI framework is a major overhaul to the way extensions have been previously developed. The framework now is far more robust and well designed. Building new and exciting extensions has never been easier. However, configuring your extension may not be the easiest thing in the world to do…
The following tutorial steps show how to configure an extension for the Tridion 2011 GUI from start to finish.
The example configuration and code is based on my extension: The Item XML Display.
Continue reading “Setting up a Tridion 2011 GUI extension in 8 steps”
A few weeks ago I wrote about how to get Froyo (Android 2.2) for your Samsung Galaxy S even if you’re outside of Nordic countries and Kies doesn’t let you upgrade.
The article explained how to trick the Samsung application into thinking your phone is from the Nordic variety by changing some registry values. I believe that Samsung already blocked this approach on their servers a while ago but its not important because for most countries the official version of Froyo is out.
Continue reading “More on getting Froyo (android 2.2) for your Galaxy S”
Important! Read this article first: More on getting Froyo (android 2.2) for your Galaxy S
If you’re like me and you already heard that Samsung released their version of the Android 2.2, Froyo update but can’t wait until it reaches your region then you might want to read on…
Some areas like in Scandinavia have already been officially getting the update but here in the U.K. apparently it will take a few more days. Well, I’m not going to wait even that to get all of that Froyo goodness:
- Pinch to Zoom homescreens overview.
- Flash 10.1
- Big speed increase
- Auto updating Android market
- Hebrew support
- and more…
To get the new update you first have to make sure you have the latest Kies software which you can download here. You can check which version you have by opening Kies and then clicking on the top left of the screen where it says “Kies” and then “Program Information”.
If you don’t have the 1.5.3.xxxx._82 then use the link above to download it.
Once you have done that, follow the instruction in this forum thread, instruction copied here for convenience:
Continue reading “Get Froyo (android 2.2) on your Galaxy S now”
About a month ago I happily shared a GUI extension I’ve built for Tridion 2009 called the Item XML Display extension.
This extension lets a user (typically a developer) view the entire XML structure of a Tridion item from within the GUI without the need to open a new IE window or having a remote session to the CM server.
If you’re one of those already using this extension and have been dreading the moment Tridion 2011 will come out and you will be left without being able to quickly view items’ XML, fear not! I got you covered:
Continue reading “My First Attempt at Tridion 2011 GUI Extensions”
A relatively unknown feature of the Tridion CMS product is the GUI extensibility framework.
This is actually a fantastic feature which allows us to create and supplement the user interface with just about any type of addition we can think of.
It is pretty unknown because of the lack of documentation but with a little bit of investigation work it is possible to find all sorts of treasures we can use to extend the current GUI.
Here’s one example that is already available on the SDLTridionWorld website’s Community eXtensions section: “Republish from publish queue”, this nifty extension gives users the ability to republish items directly from the queue instead of the normal way of locating the item within the folder or structuregroup hierarchy.
The extension framework is quite robust (not without limitations of course) and allows us to add toolbar items, context menu options, tree nodes or simply run scripts that can do just about anything.
In this article I’m focusing on the latter, adding a scripted extension to do different tasks.
jQuery’s CSS selectors and methods for DOM manipulation are exactly the tools to help us create Tridion GUI extensions quickly and with relative ease.
The way the extension framework is built allows us to create a jQuery extension that can be reused by other extensions.
Continue reading “Using jQuery for Tridion GUI Extensions”
A couple of weeks ago I announced the release of the first .NET implementation of the Gravatar API.
Gravatar.NET is available for download on Codeplex.
What I’d like to show in this article is how to make use of the library using jQuery and WCF to create your own Gravatar client (Ponderi.com style).
This article will demonstrate how to show a user their Gravatar account images, allow the user to activate a different image or delete it.
I will build upon many of the concepts I described in an earlier article I wrote called: “Creating a Webservice Proxy with jQuery”. So if you like, check it out first as I won’t go into the basics in this article.
Continue reading “Creating a Gravatar client with jQuery and WCF”