George Trifonov has written a nice tutorial on how to implement your own MetaWeblog based blog engine on his site and published the article on Codeprojectt. He also provides the full implementation in C# as a download.
With the sample George enables you to use Windows Live Writer, for example, when writing blog posts.