Browse by Tags
All Tags »
.NET 4.5 (
RSS)
MEF 2.0 - mini series: Part 7 (Catalog filter and Deep hierarchic scoping) this is the 7th post in the MEF 2.0 mini series. you can see the following TOC for other posts in this series. in the previous post I was talking about composition scoping and lifetime management. on this one, I will extend the composition scoping topic toward hierarchic along with catalog filtering capability. hierarchic scoping is not trivial, you must understand the hierarchic behavior and what it was design for. MEF hierarchic...
MEF 2.0 - mini series: part 6 (Composition scoping and lifetime management) this is the 6th post in the MEF 2.0 mini series. you can see the following TOC for other posts in this series. in this post I will cover a new concept of scoping and part lifetime management , which is a great improvement over MEF 1. MEF 1 was coming with a fairly naïve lifetime management . part's lifetime could be either shared or non-shared ( you could also apply 'any' but eventually 'any' will be created...
Async - Handling multiple Exceptions the SDP conference was ended a few week ago and I finally find a time to write some comments. It was a very successful conference, the feedback and evaluations, of most sessions scored higher than 4.5, some well-over it. For example, one workshop had a perfect 5 / 5 score , and two other workshops scored 4.92 / 5 and 4.9 / 5. The highest score for a breakout session was 9.39 / 10, which is the highest score we’ve seen to date. my score was 4.90 / 5 . but this...
SDP 2012 - Day 1 the SDP 2012 conference has started today. I was speaking about what's new in .NET 4.5 parallelism . you can find the materials for my lecture in here . tomorrow I'm giving a full day tutorial about async / await, Rx and TPL Dataflow .
Visual Rx - Part 6 this post is part of the Visual Rx series and it will focus on Visual Rx Viewer Side Extensibility . this post is dealing with advance topic, you may want to read other post on this series before reading this one. this post refer to version 2.0.20.622.60 or higher (the extensibility model was simplify at this version). Visual Rx support extension via plug-ins bundle contract. a plug-ins bundle contains: General information about the package (like title and description), Publisher...
Visual Rx Version 2.0.20622.60 I have release a new version of Visual Rx just before my fight to the Build conference. the version support .Net 4.5 and is having a new plug-in model. this post will be follow by a post about writing plug-ins for the Visual Rx. for the client side it is recommended to use the Nuget package (write visualrx into the Nuget search box). if you want to learn more about .Net 4.5 parallelism, Rx and Tpl Dataflow you can check out the Sela developer practice conference...
Sela conferences (SDP) is coming near (25-29/3/2012). you can check the following link for all the SDP's tutorials and sessions http://www.sela.co.il/s/SDP2012/index.html . I will present 2 full-day tutorials (Yaniv Rodenski will join me on the first one). the first day Introduction to the Task Parallel Library is a full TPL 4 day which will give you a solid knowledge, HowTo and Consideration about building parallel application using the TPL library. at the end of this day we will...
Rx v2.0 Beta without any bells and whistles a new version (2.0) of Rx beta is available for download . the Rx's assemblies structure has been changed and it is now Portable . read more about it here and here .
.NET 4.5 and C# 5 is approaching to matureness I have playing with the VS 11 preview for awhile and found it very stable and exciting. now the release date is getting match closer, the beta will be released (next week) on February 29 th and it will come with “Go Live” license. as for small team and start up there is a very interesting announcement about Team Foundation Server Express Beta which is a great news and will make TFS's practice match more common than it is today. I'm certainly...
async / await, some reasoning this post will try to make some reasoning about the .NET 4.5 / C#5 await keyword. I will begin with a quiz. how long will it take to the following method to produce the 42 value? Code Snippet async Task < int > Execute() { await Task .Delay(1000); await Task .Delay(1000); return 42; } you should remember that conceptually the await keyword will translate to a continuation . the above code can be compare to the following TPL 4 code snippet: Code Snippet Task <...
Using async / await this post will discuss parallel disposal. whenever we want to dispose a parallel execution upon completion we can't use the convenient using keyword. for example, the following code may be dispose the command before completion: Very bad Code Snippet using ( var conn = new SqlConnection (CONN_STR)) using ( var cmd = new SqlCommand ( "Select * from Employee" , conn)) { conn.Open(); cmd.BeginExecuteReader(ar => { int affected = cmd.EndExecuteNonQuery(ar); }); } the...
async \ await and Exception Handling this post will discuss how async / await is handling exceptions . as we mention in previous post , about the async / await concept, await is all about continuation . before .NET 4.5 parallel execution exceptions has to be handle in separate of the synchronic handling. for example: handling ThreadPool execution: Code Snippet void Foo() { try { Console .WriteLine( "Synchronic" ); ThreadPool .QueueUserWorkItem(state => { try { Console .WriteLine( "Parallel"...
the concept of async \ await in this post I will survey the new .NET 4.5 / C# 5 concept of async / await. I will focus on how to understand what is really happens behind the new async / await syntax. What's it all about? the new async / await syntax is using the C# syntactic compiler to generate async operation from code that is looking very much like a synchronous code. but before we start we should discus the new C# 5 syntax. the syntax include 2 keywords: async - which is only a marker...