RX Issue: scheduler within Merge over GroupBy

2016/05/04

Be aware of RX issue when you use scheduler within Merge over GroupBy The following code snippets work well when no scheduler is used: Code Snippet var source = Observable.Return(1)                         .Concat(Observable.Never<int>());   var xs = from item in source             group item by item % 3 == 0 into g             from x in Observable.Merge(                 g.FirstOrDefaultAsync(),                 g.LastOrDefaultAsync())             select x;   xs.Subscribe(Console.WriteLine); The code snippet will produce output of 1   When altering the code for better testability and adding scheduler to the Return and Merge operation, it will produce no output. ...
no comments

VS 15 Intellisense improvements

2016/04/02

Years ago I was publishing Visual studio extension (for VS 2010) which improve Intellisense in away that you can filter specific aspects like Method, Property, Events, etc. I didn’t find the time to upgrade this extension to newer versions of Visual Studio. Finally this functionality become part of the default Intellisense on Visual Studio 15 (not 2015). This is great feature which improve can productivity. This feature is not on the current public bits yet but it’s coming soon. I was waiting for this feature to be in the default intellisense for long time, and...
no comments

Demystify Async and Await (Part 2 of 2)

2016/03/29

Demystify Async and Await (Part 2 of 2) This post is the second post on this series. I’m strongly recommend to read the first post before this one.   On this post I will demystify async and await. So many developers are having wrong understanding of the feature all over the industry. This lead to bad practice and confusion. On this post I will try to clarify the true nature of async and await.   Misconception of async and await before I’ll explain what async and await really are, I’ll start with what it doesn’t.   I will start...
no comments

Demystify Async and Await (Part 1 of 2)

Demystify Async and Await (Part 1 of 2) After seeing so many confusion speed abroad the industry, I had came to conclusion to write this post and demystify the behavior of async and await.   To many people is having to many wrong conceptions and theories about the functionality of async and await. It lead to great confusion and bad practices. In order to explain async and await I must go back to the basic and demystify Task.   Part 1 of this 2 part series will explain what really is Task and the confusion almost everybody...
no comments

Scoping With Autofac IoC

2016/03/09

Scoping With Autofac IoC This post continue the Microsoft.Composition (Portable MEF): Scoping and it dealing with scoping on Autofac IoC. Now days Autofac is my favorite IoC framework, It has reach API which is relatively easy to use and it has great documentation. It’s also very alive and It has version for .NET Core.   you can read about scoping with Unity IoC on this post. If you didn’t read the Microsoft.Composition post it is recommend to take a look at it before reading this post. this post will focus on...

New SDK for Service Fabric

New SDK for Service Fabric Service fabric has new preview SDK with have some breaking changes and lot of improvements, some of the improvements was was based on user voice feedback. The team is listening to your voice, which mean that the API can further improve. Take your time and vote for the feature you care for.   You can find the new SDK’s web installer at this link. The SDK release note can be found at this link.   I will go over some of the changes on future posts.
no comments

Scoping With Unity IoC

2016/03/07

Scoping With Unity IoC This post continue the Microsoft.Composition (Portable MEF): Scoping and it dealing with scoping on Unity IoC. If you didn’t read the Microsoft.Composition post it is recommend to take a look on it before reading this post. this post will focus on the API (and won’t discuss the concept).   Many IoC support scoping, many times it refer for child container. in this post I will show how, Unity handle this task. On future post I will discuss other container.   Scoping with Unity this is how you do the scoping with Unity: ...
no comments

Microsoft.Composition (Portable MEF): Scoping

2016/03/06

  Microsoft.Composition (Portable MEF): Scoping This post is part of mini series, which complete the full MEF series. This post will go over Microsoft.Composition Scoping.   What is IoC scoping? IoC scoping is the ability to control the lifetime of registration per specific execution scope. whatever resolved in the scope can resolve it’s item that register under the scope or at its parent container.   Classic example for such scope is request. You may want to resolve the same instance again and again within the request scope while keeping it completely isolated from other requests. When supporting this...
no comments