Using Autofac Aggregate Services

Tuesday, September 13, 2016

I really like using Autofac, it’s one of the most productive libraries I know, and it’s so much fun to discover new features. Aggregate Services is Autofac feature that allows you to wrap a set of dependencies into a single aggregate without the need to implement a concrete type for it. Consider the following case where you have a base class that has dependencies on a few other services, and two derived classes: class BaseLicenseGenerator:ILicenseGenerator { //members public BaseLicenseGenerator(ILogger logger, IUserRepository userRepository, ILicenseRepository licenseRepository) { ...
no comments

New speaking engagements–Codemotion milan 2015 and ConFoo 2016

Wednesday, October 14, 2015

I'm thrilled to announce about two new speaking engagements On November 21st 2015 i'll be presenting at Codemotion Milan And on February 2016 i'll be at Montreal Canada presenting at the ConFoo 2016 conference My talks will be about Reactive Extensions 101(http://milan2015.codemotionworld.com/conference/322/, http://confoo.ca/en/2016/session/reactive-extensions-rx-101)  and From Zero to the Actor model using Akka.NET (http://confoo.ca/en/2016/session/from-zero-to-the-actor-model)

Animations of Rx operators – Select

Saturday, August 22, 2015

As part of the work on Reactive Extensions in Action, we thought about creating free animations of the different operators to make it easier for Rx users to understand what they do. Here is an animation of the "Select" operator. Please tell me what you think, i appreciate any comment. All the animations are available at http://freecontent.manning.com/animated-gifs/?s=reactive-extensions

Animations of Rx operators – SelectMany

Friday, August 21, 2015

As part of the work on Reactive Extensions in Action, we thought about creating free animations of the different operators to make it easier for Rx users to understand what they do. Here is an animation of the "SelectMany" operator. Please tell me what you think, i appreciate any comment. All the animations are available at http://freecontent.manning.com/animated-gifs/?s=reactive-extensions

Animations of Rx operators – GroupBy

Tuesday, August 11, 2015

As part of the work on Reactive Extensions in Action, we thought about creating free animations of the different operators to make it easier for Rx users to understand what they do. Here is an animation of the "GroupBy" operator. Please tell me what you think, i appreciate any comment. All the animations are available at http://freecontent.manning.com/animated-gifs/?s=reactive-extensions

Automatically inject log4net named logger using Ninject

Wednesday, February 25, 2015

When working with log4net you usually want that each class will have a named logger with the class full name (Namespace+Name). the Log4Net examples shows this pattern:public class MyClass { // Define a static logger variable so that it references the // Logger instance named "MyClass". private static readonly ILog log = LogManager.GetLogger(typeof(MyClass)); //Rest of the Class }   this will create a logger instance with the class name and now in my log4net configuration I can write something like this:   <log4net> <!-- A1 is set to be a ConsoleAppender...
tags: , , , ,
3 comments

Getting the Free Storage Space in WinRT

Tuesday, December 16, 2014

I didnt find any documenation to this method other than the thread in StackOverflow: http://stackoverflow.com/questions/19510449/disk-space-in-winrt-using-c-sharp-in-windows-8 so im keeping it here so it wont get lost by the winds of time…. public static async Task<UInt64> GetFreeSpace(this IStorageItem sf) { var properties = await sf.GetBasicPropertiesAsync(); var filteredProperties = await properties.RetrievePropertiesAsync(new { "System.FreeSpace" }); var freeSpace = filteredProperties; return (UInt64)freeSpace; } Sample use: var freeSpace = await ApplicationData.Current.LocalFolder.GetFreeSpace(); Debug.WriteLine(freeSpace.GetSizeString()); Thank you  Filip Skakun
no comments

Creating a Dialog service for Windows Store apps using Caliburn.Micro

Friday, November 28, 2014

When you want to display a dislog screen in windows store apps, you can use Flyout, MessageDialog or Popup the first two should be used for the simple cases – message prompts, question, basic user interaction. But if you need to display a richer dialog then Popup is the right fit. The MVVM way to open those dialogs is by using some kind of DialogService that will be called from you ViewModels. in all the sample i've seen on using Popup it always has a strong coupling to the View itself, meaning the Popup was embedded inside the view...
no comments