(WF4) Workflow 4.0 Hosting Extensions
[Update:Dear Readers,To those of you who found this post interesting, but still a little too vague on how exactly you can use extensions for workflow-host communications, how this ties in with...
View Article(WF4) They have AsyncCodeActivity, why not AsyncNativeActivity?
AsyncCodeActivity is a nice class for wrapping calls to asynchronous APIs and turning them into activities that can run super-efficiently. But! There are a few limitations to being a subclass of...
View ArticlePlatform Update 3 Beta
G’day all, just a little snippet of news to share – remember .Net 4 Platform Update 1? The update with State Machine? Well, we are almost up to Platform Update 3 now, and the beta version is available...
View Article(WF4,VS) WorkflowDesigner Extensions in Visual Studio 2012
(Intro: Sometimes as part of testing I go to silly lengths to try to point out what I think is going to be a bug in a piece of code I have seen. And frequently when I do this, I am basically wrong, for...
View ArticleIs IQueryable poisoning your interfaces?
Thanks indirectly to a comment on my previous post, today I read ‘IQueryable is tight coupling’ (disclaimer: his words). I feel like it contains an interesting mixture of truth and panic, and makes a...
View ArticleTests should explain something
I sometimes see unit tests which are downright confusingly opaque. Being a unit test, they are testing some smallish piece of code. Unfortunately by the time I finish reading the test I am none the...
View ArticleReading performance counter data in .NET
Nothing you can’t easily write yourself, but while playing around, I wrote this one myself, and learned one or two things. Firsltry, it demonstrates the wrinkle that when reading % processor time you...
View ArticleEverything but the language design…?
So I’ve been reading some history of programming languages. And one question that came up a lot is ‘What made this language popular? Why did it live, where others have failed?’ There have been a bunch...
View ArticleExploring F# (1)
C# and typescript are starting to feel too familiar and dull, so I went exploring. I fired up my first F# console app, and learned a few things. I’m taking a very lazy almost-but-not-quite-just-in-time...
View ArticleRequest and connection throttling when self hosting with OwinHttpListener
[Disclaimer before we begin: I’m not really an expert on OWIN (henceforth ‘owin’) or HttpListener – I just researched this as best I could myself so I may get some stuff wrong. Question my authority!]...
View ArticleDistilling some ideas for keeping that data access code (and test code) tidy…
I just spent a while doing some refactoring. It turned out to be a very long while, probably much more than I would have originally estimated. (Part of the reason for that is builds and tests that take...
View ArticleIs Autofac magical?
The answer is yes! OK let me explain. I never registered anything as Func<IObservable<object>> and yet the below code still works. It turns out to be that not only does autofac understand...
View ArticleIs Autofac magical – part II
Now that you’ve read part I perhaps you can answer this. What does this code do? class FO : IEnumerable { public IEnumerator GetEnumerator() { throw new...
View ArticleSlimming down your build – don’t copy the intellisense files!
So you know how a lot of nuget packages include intellisense XML files and they get copied to your output binaries folder during build? I did a quick web search but soon for how to fix this, but soon...
View ArticleGrokking LazyAsyncResult (.Net internal)
(Background: sometimes as I try to understand our bugs, I have to learn about the .net internal classes used for implementation of the public classes that we’re consuming – my motivator today is...
View ArticleGrokking ContextAwareResult (.Net internals)
(This is the sequel to grokking LazyAsyncResult, which could be considered a prerequisite.) You’ll see if you look through Socket async API internals that they aren’t just using the LazyAsyncResult...
View Article